Re:Actix Web: Optimization Amongst Optimizations
by fafhrd91 on Sunday January 05, 2020 @02:42PM
(#21963476)
You still need to initialize inner structures and buffers. Cache allows to avoid that.
[ Parent
| on HN ]
Re:Actix Web: Optimization Amongst Optimizations
by JoshMcguigan on Sunday January 05, 2020 @04:41PM
(#21964330)
Thanks for the response.
So it sounds like it is not so much the allocation/de-allocation savings that matters, but rather that you get to skip initializing the memory because it is already known to be a valid instance of a given struct type?
Re:Actix Web: Optimization Amongst Optimizations
by jlokier on Monday January 06, 2020 @07:20AM
(#21968563)
Yes, that.
See also SLAB allocation, used in many OS kernels: https://en.wikipedia.org/wiki/Slab_allocation