Open
Description
I think the problem lies in the fact that the C code is using malloc()
(a lot). Which is not exactly as "performant" as the new ...
in Java.
For this particular use case (your benchmark), you need to probably switch from malloc()
to something else - something that's efficient in allocating small blocks of the same size (e.g.: Nodes).
http://dmitrysoshnikov.com/compilers/writing-a-pool-allocator/
PS: Think of malloc()
as something general-purpose, that's suitable to allocate everything, from small to huge chunks of memory.
Metadata
Metadata
Assignees
Labels
No labels