News for hackers. Stuff that matters.
Re:Nana: A modern C++ GUI library by eps on Sunday April 21, 2019 @04:59AM (#19711248)
These can be in fast path, depends on the code, but that's not the point.

Coming from embedded development, the amount of short-lived heap allocations that are so conveniently swiped under the carpet with C++ is ridiculous. Even with something like slab allocators and extremely cheap allocs, there are always cases when alloc-free cycles fall on the edge of slab and become very expensive. The less is allocated during the run-time the better.

When these are combined across the whole codebase, optimizing them away _does_ result in a noticeable speed increase and makes the whole thing behave more predictably. Regardless of their perceived per-call cost.

Re:Nana: A modern C++ GUI library by antoinevg on Sunday April 21, 2019 @12:26PM (#19712853)
To contextualise, my comment absolutely assumed a modern desktop target.

I obviously would not be using this (or anyone else's higher level framework!) if I was targeting an embedded platform.