Re: [Tuxnes-devel] Re: [tuxnes-dev] Steve's memory patch
Brought to you by:
tmmm
From: Jeroen Ruigrok/A. <as...@wx...> - 2001-03-26 20:28:30
|
[sorry for the rediculous late replies] -On [20010227 20:03], spi...@my... (spi...@my...) wrote: >What's broken in BSD? Mostly #include/#define stuff. Plus I like anal compiler settings to get more ANSI portability. Apply large clue before fixing though. ;) >For some reason we are allocating about 20 megs worth, and only really >using 3... It just seems to be quite sloppy to me :-) Normally malloc() prereserves memory but doesn't really allocate it right away. Doing the latter would cause immediate thrasing [be it paging or swapping] in the OS. So whilst we may seem to allocate a tonload of memory, we only use a fraction. :) >What I did for my patches was just grep through the source for FIXME's, >then fix them(I think ;-).. Let me know is you found anything nasty >from those patches.. The memory handling should be fine, don't see any >problems there... I wonder if the defines react wierd on BSD? Just look at some of my recent list of *cough* fixes. Please let me know if I broke stuff on Linux. -- Jeroen Ruigrok van der Werven/Asmodai .oUo. asmodai@[wxs.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 Honesty is the first chapter of the book of wisdom... |