ARSD PNG memory usage

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 17 00:07:54 PDT 2016


On Friday, 17 June 2016 at 03:41:02 UTC, Adam D. Ruppe wrote:
> It actually has been on my todo list for a while to change the 
> decoder to generate less garbage. I have had trouble in the 
> past with temporary arrays being pinned by false pointers and 
> the memory use ballooning from that, and the lifetime is really 
> easy to manage so just malloc/freeing it would be an easy 
> solution, just like you said, std.zlib basically sucks so I 
> have to use the underlying C functions and I just haven't 
> gotten around to it.

did that. decoding still sux, but now it should suck less. ;-) 
encoder is still using "std.zlib", though. next time, maybe.


More information about the Digitalmars-d-learn mailing list