title: is it worth to implement a slab allocator nowdays?
body: <p>I am working on a server having to read from many thousands of socket clients connected at the same time. The client requests are constituted by messages having all the same exact size of about 32 bytes. </p>
  
  <p>I am reading about the <code>slab allocator</code> and I'd like to use this particular technique for my application when I call <code>read</code> to get the data out of the socket (<code>read</code> copies data from kernel buffer into a buffer of my choice and I'd like to use some memory dynamically allocated).</p>
  
  <p>While I am reading it seems that Linux kernel is already using this technique. If this is used for implementing <code>malloc or new</code> is it still worth for me to do it given that allocation is already performant?</p>
  
  <p>I was thinking that I might be better off by using allocation on the  stack without SLAB algorithm but I am not sure which is the best approach.</p>