Resource pooling - to avoid dynamic allocation


#1

Hi,

I have been looking for a package that implements resource pooling? I.e. a package that implements a pool of (reference counted) resources to avoid dynamic allocation of “expensive” resources such as large arrays, images, network connections etc.

Best regards,
Jesper


#2

There is a CachingPool for use with pmap, for example. Is that sort of what you are after?


#3

Not quite, I need something that implements the Object pool pattern like https://github.com/steinwurf/recycle