You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a high-concurrency environment and the image file is large, image.Decode will consume a lot of memory. Is it possible to provide a similar like json package NewDecoder function to write the decoded image to an external image object? User code can use sync.Pool to reuse the image object.
seankhliao
changed the title
proposal: image: image.Decode consumes a lot of memory
proposal: image: NewDecoder that reuses previously allocated Image
Jan 24, 2025
Proposal Details
In a high-concurrency environment and the image file is large, image.Decode will consume a lot of memory. Is it possible to provide a similar like json package NewDecoder function to write the decoded image to an external image object? User code can use sync.Pool to reuse the image object.
The text was updated successfully, but these errors were encountered: