Closed Hanmo123 closed 3 months ago
Hey @Hanmo123. Thanks for the issue report. I believe it's probably not a memory leak but instead just has to do with how slow golang's garbage collector works. Try running short-running goroutines that handle the images for instance, or use the gc-functions in the golang standard library.
I tried to convert a image(from Hasselblad x2d, 100 million pixels, about 65MB, you can download here) to avif using codes below:
it takes more than 13GB memory and finally OOM:
why i suppose it is abnormal: