[Lemon-user] Custom allocators

Alpár Jüttner alpar at cs.elte.hu
Wed Jun 29 13:14:22 CEST 2011


Hi,

> A suggestion. It would be very useful to be able to pass/define custom
> STL allocators for the underlying STL types used (vector etc)

Technically, it would be of course possible, but it would make the
interfaces more complex (one more template parameter and one more
constructor parameter).

On the other hand, the tools in LEMON designed in a way that memory
allocation shouldn't be a bottleneck in most use-cases. I.e. complex
data structures are hand-optimized to allocate big chunks of memory
blocks instead of depending on the speed (and caching efficiency) of a
general purpose memory pool.

But, if you know a real use case for using custom STL allocator in
LEMON, don't hesitate to let us know. 

Regards,
Alpár

P.S.: Thank you for the kind words in your previous mail.



> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user





More information about the Lemon-user mailing list