Hey,

On 1/9/22 14:54, Otto Moerbeek wrote:
currently malloc does cache a number of free'ed regions up to 128k in
size. This cache is indexed by size (in # of pages), so it is very
quick to check.

Some programs allocate and deallocate larger allocations in a frantic
way.  Accodomate those programs by also keeping a cache of regions
betwen 128k and 2M, in a cache of variable sized regions.

My test case speeds up about twice. A make build gets a small speedup.

This has been tested by myself on amd64 quite intensively. I am asking
for more tests, especialy on more "exotic" platforms. I wil do arm64
myself soon.  Test can be running your favorite programs, doing make
builds or running tests in regress/lib/libc/malloc.

Thanks in advance!

i did some workloads with your patch applied. I did not notice any speedups (but i also did not time it, just a suggestive feeling while waiting for cargo build to finish) To me everything works fine. I am on a normal amd64, sadly i dont have other hardware available.

I hope this helps
Greetings
Leo

Reply via email to