:-) I see what you mean, but unfortunately I cannot put it back just yet.. ;-)
But the whole idea is a good thing to explore. Most of the data chunks I use have certain sizes - perhaps I can sort them into some groups hold by separate pools. I'm going to look int this kind of solution. Thank you very much, Jan! On Wednesday, May 3, 2017 at 7:01:34 PM UTC+2, Jan Mercl wrote: > > On Wed, May 3, 2017 at 6:50 PM Piotr Narewski <piot...@gmail.com > <javascript:>> wrote: > > > Perhaps that is the reason; when I need 515 bytes, it actually allocates > 1024 > > This might be when I'm loosing the mem. > > Not if you Put() it back after use ;-) > > It's of course also possible to make the allocation granularity finer if > necessary (and/or Fibonacci-ish). > > -- > > -j > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.