3 ms·
That cnontetris example seemed to be having dire effects on Firefox's memory usage. It was using 21% of my 4GB, but then when I started that it went jumping up
by chrismorgan 13y ago
That cnontetris example seemed to be having dire effects on Firefox's memory usage. It was using 21% of my 4GB, but then when I started that it went jumping up to over 80% and back down again and back and forth. Is it really causing the allocation and freeing of over 2GB of RAM just like that every so often?
Oh, by the way—the game was entirely unplayable for reasons likely to be related to this memory thrashing.
- apignotti 13y agoOur memory management approach is still not tuned and optimized. There are quite a few low hanging fruits that should provide great improvements, but we have not yet implemented them - Alessandro of Leaningtech
- chrismorgan 13y agoWould you mind if I suggested that arbitrarily using a couple of gigabytes of memory like that was a fairly severe problem? :-) Seriously, I would like to see a warning put on links to that example to the effect that at present it will make your browser use up to 2½ GB more RAM and will thrash your memory. Because it did render my browser (and to a lesser degree my system) unresponsive for a couple of minutes while things swapped.
- apignotti 13y agoYou are absolutely right, it is a severe problem and I apologize for this. We are adding a warning on our examples page right now.