03.04.2014 20:32, Dimitry Sibiryakov wrote:

>> I'm not sure I like the extra load put on the memory manager.
>
> It is transaction-local memory pool.

Even if there's no contention there, allocating/deallocating is always 
slower than not doing that at all.

> IMHO, this is unnecessary code complication. Transaction is not in the 
> position to
> predict time of life of returned buffers.

You destroy those buffer via AutoPtr when they get out of scope. 
Instead, you could release those buffers for reuse at the end of the 
same scope.


Dmitry


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to