logoalt Hacker News

cyberaxyesterday at 11:34 PM3 repliesview on HN

Ugh. Is it just me, or is anyone else feeling a tad uncomfortable that their terminal app needs a custom memory allocator that mucks with low-level page tags?


Replies

flumpcakesyesterday at 11:57 PM

I am not sure on what your commented is based on, but in short: No? High performance software needs to deal with memory, and optimisations often will need some kind of direct control - as in this example where re-using memory is more performant than constantly churning with mmap.

show 1 reply
yoyohello13today at 1:31 AM

Frankly, I wish more software prioritized performance this much.

speed_spreadtoday at 2:30 PM

You're not alone. Correctness first. Such complicated schemes should be backed with repeatable benchmarks so that their purported gains can be challenged later by simpler techniques. Too often clever optimizations with marginal gains make it to production and become maintenance liabilities.