PATCH/RFC Pool allocations of QStringData objects..

Andrew Morton kde-optimize@mail.kde.org
Sat, 18 Jan 2003 00:40:02 -0800


Maks Orlovich <mo002j@mail.rochester.edu> wrote:
>
> +		//Don't pool too many.
> +		if (count > 1000)
> +		{
> +			::free(alloc);
> +			realFreed++;
> +		}
> +		else

This is freeing the cache-hot memory while retaining the cache-cold memory.
It would be better to implement full LIFO here.