mozilla / pluotsorbet

[ARCHIVED] PluotSorbet is a J2ME-compatible virtual machine written in JavaScript.
GNU General Public License v2.0
237 stars 46 forks source link

Use Boehm's GC heuristics instead of our own #1838

Closed marco-c closed 9 years ago

marco-c commented 9 years ago

I still need to test this thoroughly.

mykmelez commented 9 years ago

@marco-c I tested with RunWhatsApp on an Aries, and it doesn't get oomed, nor does perf seem to suffer. If anything, scrolling through a long contact list seems faster and smoother, perhaps because Boehm's heuristic is more aggressive than our current one, so it collects more frequently, regularly, and quickly. That certainly seems to be the case when I sample free memory using https://github.com/mykmelez/pluotsorbet/tree/intex-sample-free-memory.

I'll await your further testing before merging this, however.

marco-c commented 9 years ago

I'll await your further testing before merging this, however.

Done, I just wanted to measure memory usage. After using WA for a while (opening/closing conversations, viewing images, scrolling conversation history, etc.) the heap size is 2813952 bytes (used memory 2347008 bytes), which seems pretty good to me!