Anyway, lets skip this point right now and come back to after we'll make benchmarks of your version of stud. If it'll be reasonably faster - then we might seek some solution for mitigation of this problems (probably having linked list of memory pools).