Operating System
What feature would you like to be added?
Especially the current Image.SubImage returns a image using an internal cache, and this cannot be replaced with sync.Pool due to compatibility.
If this and New*Image functions could use sync.Pool instead of the cache, they can always return recyclable image, and the user can put it back to the pool explicitly. We would no longer need RecyclableSubImage.
As this is a breaking change, let's do this in v3
Why is this needed?
Simplifying the semantics.
Operating System
What feature would you like to be added?
Especially the current
Image.SubImagereturns a image using an internal cache, and this cannot be replaced withsync.Pooldue to compatibility.If this and
New*Imagefunctions could usesync.Poolinstead of the cache, they can always return recyclable image, and the user can put it back to the pool explicitly. We would no longer needRecyclableSubImage.As this is a breaking change, let's do this in v3
Why is this needed?
Simplifying the semantics.