stupid question: how to use malloc/new efficiently
Alexander Neundorf
neundorf at kde.org
Sat Jan 17 16:26:00 CET 2004
Hi,
I never thought about it until I recently read it somewhere:
should one always use malloc/new for buffers with sizes which are multiples of
1K/1 page i.e. usually 4K or something like this ?
If not, malloc will end up with a lot of small buffers of random sizes which
are hard to reuse and therefor it has to get new memory.
Is this still valid or can this be ignored ?
Bye
Alex
--
Work: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org - http://www.kde.org
alex at neundorf.net - http://www.neundorf.net
More information about the Kde-optimize
mailing list