On Friday, 17 June 2016 at 02:55:43 UTC, thedeemon wrote:
On Friday, 17 June 2016 at 01:51:41 UTC, Joerg Joergonson wrote:
Hi, so, do you have any idea why when I load an image with
png.d it takes a ton of memory?
I've bumped into this previously. It allocates a lot of
temporary arrays for decoded chunks of data, and I managed to
reduce those allocations a bit, here's the version I used:
http://stuff.thedeemon.com/png.d
(last changed Oct 2014, so may need some tweaks today)
Hey, I also stumbled upon this with imageformats decoding PNG.
Image loading makes 10x the garbage it should.
Let's see what this threads unveils...