3 ms·
Firefox, just sitting there on a page with zero activity, manages to burn about 5% of a CPU doing garbage-collection related tasks within Gecko. Maybe this will
by Animats 9y ago
Firefox, just sitting there on a page with zero activity, manages to burn about 5% of a CPU doing garbage-collection related tasks within Gecko. Maybe this will get better with the Rust version.
- deleted 9y ago[deleted]
- dbaupp 9y agoGC is due to Javascript not C++.
- Animats 9y agoFirefox has an internal GC for C++ objects managed by its XPCOM system.[1] It's called the "cycle collector". [1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Interfacing_with_the_XPCOM_cycle_collector https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/...
- dbaupp 9y agoAnd Servo uses a GC deeply within its Rust code too (the JS one, in fact). I think the benefits in Servo with respect to GC would mainly be because the code is new/learnt from the mistakes of the old (and avoided historical baggage), rather than because it is in Rust.
- eridius 9y agoIf it's continually garbage collecting then surely it's not actually zero activity, no? JavaScript must be doing something.
- gog 9y agoI am not sure if it relates, but this happens to me on some pages. If I turn off all styles (CSS), then the CPU usage drops to 0. In my case, CSS is the culprit because the same page does this on Chrome as well.