random-gif consumes so much memory
Closed this issue · 6 comments
I just ran memory gif example and it seems to consume lots of memory on my machine. Do you know why? I haven't read the details of meiosis yet but I'm wondering if it's related to the meiosis pattern or just a bad implementation on this particular example.
@sassanh interesting. Would you mind trying it without Meiosis Tracer and see if that makes a significant difference?
@sassanh thank you for spotting this. After inspecting the memory usage, I saw that the bulk of the memory is used by strings generated by bss
. To be sure, I commented out all usage of bss
and the memory usage remained stable (approx. 15MB) even after clicking on Random Gif over 100 times.
@porsager perhaps I am misusing bss
? Here is an example. Do you have any suggestions for reducing memory usage?
Thanks!
Thanks for quick response. I'm glad you found the issue fast.
@foxdonut That's very interesting, and no, no wrongful usage.. To be honest I haven't at all dived into memory yet (only cpu), so it's very likely. It's good to have a reproducible case to go from, I've created porsager/bss#28 to track it :)