Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#9947) insane inefficiency in packet sending
Home

[Freeciv-Dev] Re: (PR#9947) insane inefficiency in packet sending

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9947) insane inefficiency in packet sending
From: "Raimar Falke" <hawk@xxxxxxxxxxxxxxxxx>
Date: Mon, 6 Sep 2004 19:25:12 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9947 >

On Sun, Sep 05, 2004 at 09:49:33PM -0700, Jason Short wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9947 >
> 
> Gregory Berkolaiko wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=9947 >
> > 
> > On Sun, 5 Sep 2004, Jason Short wrote:
> > 
> > 
> >><URL: http://rt.freeciv.org/Ticket/Display.html?id=9947 >
> >>
> >>This patch should fix things, and make them simpler as well.
> >>
> >>However I can find no noticeable improvement on my system.  I wonder if
> >>I am timing things wrong, or if glibc's realloc uses an algorithm
> >>similar to specvec's for O(1) ammortized reallocation...
> > 
> > I read code of realloc once, it tries very hard not to copy things around
> 
> If realloc is optimal then we don't need specvec at all...
> 
> But if even one platform uses a naive implementation then it's worth 
> using specvec.

specvec provides type safety. That is at least for me the major selling
point.

        Raimar




[Prev in Thread] Current Thread [Next in Thread]