[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: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] Re: (PR#9947) insane inefficiency in packet sending |
From: |
"Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx> |
Date: |
Sun, 5 Sep 2004 21:49:33 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<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.
jason
|
|