stupid question: how to use malloc/new efficiently

Scott Wheeler wheeler at kde.org
Sat Jan 17 18:43:36 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 17 January 2004 16:26, Alexander Neundorf wrote:

> 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 ?

This is specifically what KZoneAllocator is for, bus as was mentioned this 
should generally be ignored unless profiling indicates that you specifically 
have a need for it.

- -Scott

- -- 
It may be true that you can't fool all the people all the time, but you can 
fool enough of them to rule a large country. 
- --Will Durant
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFACXRIQu0ByfY5QTkRAt+QAJ4sRot2eU1JOkZ8NsiJwioex26I/QCfWhis
WXMWge+KOEriJYMm3De7qb0=
=0z0I
-----END PGP SIGNATURE-----


More information about the Kde-optimize mailing list