Resource pooling - to avoid dynamic allocation


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,

1 Like

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

Not quite, I need something that implements the Object pool pattern like