Live data from Hacker News

Multi-process Firefox brings 400-700% improvement in responsiveness

techcrunch.com

51–60 of 346 posts

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#51

Earlier quoted context omitted.

For me, disabling JS by default was the culprit. I only turn it on for sites that actually need it, and it seems to work much better. YMMV of course

NoScript allows you to turn it off/on by domain.

I haven't used that in a while, but I remember liking it. I've moved to umatrix

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#52
post #7

I switched to Firefox from Chrome about 12 months ago. It isn't as good as Chrome, but I was trying to reduce my Google dependencies. It has been mostly fine (except for an annoying OS-X multi-screen bug where it screws up the sizing). I was really looking forward to this feature to help close the gap on Chrome performance. Until August (I think Firefox 48.x), when it became unusable on any site with... something. I'…

Firefox is frustratingly slow for me. I can't use it, have to stick to Chrome. Chrome which, by the way, crashes after 5 minutes of using video Hangouts and brings my 16 gigabytes ram PC to a halt when I open too many youtube tabs.

But firefox scrolling is especially slow. irccloud.com is the main culprit (and I use irccloud a lot). It's pretty bad in gmail as well.

The react app my team is working on is also far slower in Firefox. Try scrolling this in Firefox and Chrome and see the difference (the scrubber is at the bottom of the blue area, like a video). Butter smooth in Chrome, horribly slow in Firefox: https://hsreplay.net/replay/7VAKLeMNaXvshAawnUUoni

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#53
post #14

This should come as no surprise. It has always been an epic architectural mistake to use the same single non-reentrant Javascript engine to both render the UI and run JS for webpages in Firefox. This change will finally undo that huge mistake made so very long ago.

Multi-processing is an orthogonal issue to single-threaded JS.

The same asynchronous logic used to have multiple browser engines with multiple JS runtimes talk to each other could also be used for multi-threading while making shared, thread-safe datastructures of non-JS parts much easier.

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#54
post #7

I switched to Firefox from Chrome about 12 months ago. It isn't as good as Chrome, but I was trying to reduce my Google dependencies. It has been mostly fine (except for an annoying OS-X multi-screen bug where it screws up the sizing). I was really looking forward to this feature to help close the gap on Chrome performance. Until August (I think Firefox 48.x), when it became unusable on any site with... something. I'…

This seems atypical. Given that you don't use any add-ons, consider resetting your profile. Alternatively, you may wish to disable multi-process for the time being if it's enabled for you (I'm sure there's a flag you can set for that if you Google for it), or upgrade to the beta or alpha builds. In my experience, the beta/alpha builds are usually plenty stable to be a daily driver.

I second that. My FF on Linux acted weirdly, then I removed the whole .mozilla directory (remembered to save the greasemonkey scripts I wrote, but forgot to save the favorite links :( ) and everything worked again.

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#55
post #7

I switched to Firefox from Chrome about 12 months ago. It isn't as good as Chrome, but I was trying to reduce my Google dependencies. It has been mostly fine (except for an annoying OS-X multi-screen bug where it screws up the sizing). I was really looking forward to this feature to help close the gap on Chrome performance. Until August (I think Firefox 48.x), when it became unusable on any site with... something. I'…

Chrome became really really really slow on Ubuntu in the past year, no extensions installed. Every time I use it on a high-end Core M ultrabook, the CPU/RAM is eaten, the whole system becomes laggy, Google Hangout/Slack voice chat/Skype gets interrupted all the time etc. Not sure if you gain anything by moving back, sadly :(

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#56

Its incredible multi-process took this long. Just goes to show you that your architecture decisions last a long time and are often difficult to change. Chrome had this from day one and never had a big and old codebase to worry about. Yet it took Firefox many years to get multi-process going and my understanding is that its much more limited and simpler than what Chrome or Edge do. I'm also a little surprised there ha…

Addons are a big part of the firefox ecosystem and they reach deep into the internals of the browser. So just replacing the browser wholesale would break a lot of things over the course of a single release.

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#57
post #14

This should come as no surprise. It has always been an epic architectural mistake to use the same single non-reentrant Javascript engine to both render the UI and run JS for webpages in Firefox. This change will finally undo that huge mistake made so very long ago.

JavaScript was little more than a toy scripting language used to animate stuff and change layouts when html/Css wouldn't fit for the greatest part of firefox's early existence. At the time it was probably the appropriate decision. Now, it's a huge burden on Firefox and it's good to finally see progress on this front.

Since Javascript is just a language that happens to execute client-side within the browser, why can we not use an existing language syntax (or an existing language entirely) for this purpose? For example, Go, Python, Rust, or perhaps Perl? It feels like a broken shell scripting language that really should have been replaced.

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#58
post #27

A pity it's now practically useless, since many add-ons need modification to keep electrolysis enabled. In a year or so things will be better I hope.

Only if addon authors fix them. Afaik mozilla devs aren't planning on adding additional compatibility shims.

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#59
post #14

This should come as no surprise. It has always been an epic architectural mistake to use the same single non-reentrant Javascript engine to both render the UI and run JS for webpages in Firefox. This change will finally undo that huge mistake made so very long ago.

Yeah, I never understood why they did it, it was obvious a single unresponsive tab would block the whole browser, but I guess fresh blood at Firefox needed to gain experience...

Re: Multi-process Firefox brings 400-700% improvement in responsiveness

#60
post #23
post #19

“We can learn from the competition,” said Dotzler. “The way they implemented multi-process is RAM-intensive, it can get out of hand. We are learning from them and building an architecture that doesn’t eat all your RAM.” That's the money quote here. I've been waiting for this for a long time actually. Every browser I've tried except Firefox just basically eats all my RAM and other app performance (e.g. compiling stuff…

A few years ago if you'd told me FF would be the RAM-sensitive browser, I'd have laughed you off the internet.

Funniest thing is that FF memory usage didn't go down that much. For me it is even higher.
Post reply on HN