| ▲ | Retr0id 2 hours ago | ||||||||||||||||||||||||||||
Looks like the default allocator uses mmap(2) for every single allocation, which is horribly inefficient - you map a whole PAGE_SIZE worth of memory for every tiny string. Aside from just wasting memory this will make the TLB very unhappy. It looks like sp_log's string formatting is entirely unbuffered which results in lots of tiny write syscalls. | |||||||||||||||||||||||||||||
| ▲ | AlotOfReading 2 hours ago | parent [-] | ||||||||||||||||||||||||||||
That seems to be a pretty consistent quality level for the entire library. Look at the implementations in sp_math, yikes. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||