Hacker News new | ask | show | jobs
by kibwen 30 days ago
Heap allocations aren't really the culprit of the waste that the root comment is talking about. Indirection in general is, and passing around an allocator doesn't guard you against that. Virtual dispatch occurs even for objects on the stack.
1 comments

Yes, I was suggesting allocation as another example of the same principle.