Conversation

I love libdivide. Moving to libdivide-2.0 in hardened_malloc is an easy win. 16 byte malloc microbenchmark on Broadwell-E: Hardware division: 1s libdivide-1.1: 0.74s libdivide-2.0: 0.71s In a lightweight build: Hardware division: 1s libdivide-1.1: 0.62s libdivide-2.0: 0.59s
4
76
Replying to
I’m surprised libdivide would need malloc at all (knowing next to nothing about how division is implemented.) Could it be even faster using fixed allocation?
2
Replying to and
Using libdivide in hardened_malloc instead of hardware division cuts 25-40% off the runtime for a malloc microbenchmark depending on the configuration. It's in the 25-30% range with all the optional security features enabled since the relative cost of the divisions get smaller.
1
4