rainbow-me / browser-extension

An Ethereum wallet built for speed 🌈
https://rainbow.me/
GNU General Public License v3.0
165 stars 34 forks source link

Firefox extension utilizes lot of CPU #1333

Open wslyvh opened 7 months ago

wslyvh commented 7 months ago

Every time I open up or try to do any action using the browser extension my CPUs go crazy. I can actually hear them spin up. % usage jumps to ~!5%. The extension itself becomes really slow. When I initially open it, it's basically unusable, so I wait 2-3 seconds to "cool down" to around 7-8% CPU usage, before clicking or performing any next action.

I've had this issue since the launch of the extension (Oct '23) and disabled it immediately again after installing. There's some DM history on twitter (@wslyvh).

I recently formatted and did a clean install of OS + Browser + extensions, so wanted to give it another try but still experiencing the same issues.

Laptop: System76 Lemur Pro (11th gen, i7, 40GB ram) OS: Pop_OS 22.04 Firefox version: 122.0 Rainbow extension version: 1.3.62

Only 1 wallet address is added: wslyvh.eth

gvastethecreator commented 6 months ago

same problem here, just uninstalled

DanielSinclair commented 5 months ago

Hi folks! We are investigating and investing in fixes for this issue. We introduced our first performance improvement last week specifically for Firefox users that was related to overuse of the network RPC by our NFTs feature. We have found that Firefox seems to suffer unique performance issues for the new Manifest v3 extension standard, and have pinpointed some of these instances to network activity where Firefox's main thread will bog down during a swarm of network requests. This also appears to impact some operating systems more than others, including Linux distros where Firefox itself seems to be under optimized. We will continue to optimize our network activity to mitigate this, and are seeking additional performance gains around the codebase.

If you find specific reproduction paths or scenarios that worsen performance, or have additional insights or optimization ideas, definitely let us know. We are actively working on this, and will keep this thread updated as we make progress.

gvastethecreator commented 5 months ago

Hi folks! We are investigating and investing in fixes for this issue. We introduced our first performance improvement last week specifically for Firefox users that was related to overuse of the network RPC by our NFTs feature. We have found that Firefox seems to suffer unique performance issues for the new Manifest v3 extension standard, and have pinpointed some of these instances to network activity where Firefox's main thread will bog down during a swarm of network requests. This also appears to impact some operating systems more than others, including Linux distros where Firefox itself seems to be under optimized. We will continue to optimize our network activity to mitigate this, and are seeking additional performance gains around the codebase.

If you find specific reproduction paths or scenarios that worsen performance, or have additional insights or optimization ideas, definitely let us know. We are actively working on this, and will keep this thread updated as we make progress.

mainly while trying to sign anything it occurs, tried with brand new installations and everything.

DanielSinclair commented 4 months ago

@gvastethecreator We've released another performance fix for Firefox this week. Do you happen to see any improvements in your usage?

wslyvh commented 3 months ago

Just tried it again, but same issue. First interaction with the extension (logging in) immediately spins up CPU again

Uninstalled :(