make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make CVS HEAD version build out of the box


From: Yongwei Wu
Subject: Re: Make CVS HEAD version build out of the box
Date: Thu, 4 Oct 2007 09:03:02 +0800

On 04/10/2007, Dave Korn <address@hidden> wrote:
> On 03 October 2007 17:01, Yongwei Wu wrote:
>
>
> >> The only real solution is to avoid alloca() and use malloc() everywhere.
> >
> > I do not like heap allocation here, which is vastly slower, and will
> > really make the Windows fix very, very ugly.
>
>   "Slow" is a relative term.  Given that this allocation is only necessary
> when we're about to go out to the disk to perform a 'stat' operation, I
> believe that the (actually fairly small) amount of time it takes the heap
> allocater to pull a chunk off a linked-list is likely to be entirely
> insignificant compared to the time required by the I/O.

Your belief is true.  Against my wishes, tests show that although
malloc/free may be about 100 times slower than alloca, stat is again
100 times slower than malloc/free on my box.

Best regards,

Yongwei

-- 
Wu Yongwei
URL: http://wyw.dcweb.cn/




reply via email to

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