Brooks Davis wrote: > On Tue, Oct 22, 2002 at 01:20:42AM -0700, Terry Lambert wrote: > > The FreeBSD malloc would be lower performance than the Linux malloc, > > if you allocate space in teeny, tiny chunks; it has much higher > > performance for large allocations. Good programmers allocate their > > resources up front, once, instead of doing the allocations in time > > critical internal loops. > > The user may also see a performance gain on Linux if they use a less > stupid allocation scheme. I ran into some code once that read strings > one character at a time via getc() and did a realloc for each read. > Needless to say, performance was truly awful since a typical run > required parsing over 600MB of text. I saw a better then 50% speedup on > Alpha Linux when I fixed that mess.
This goes without saying. It's the difference between programmers and software engineers. Nevertheless, there will continue to be a performance differential between FreeBSD and Linux. I personally don't think it's a problem; optimizing that area is optimizing noise. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message