eveningkid/reacto

Battery usage

Closed this issue · 4 comments

I know this is significantly Electron's fault, but Reacto uses dramatically more power than other editors. It's likely pretty difficult to optimize and test, but I want to bring it up as a longer-term thing.

I pulled up (production build, not dev) Reacto + BBEdit next to each other, on the same project with the same file, in macOS Split View, running on my 2013 MacBook Pro with Retina Display 13". (Reacto is unusable at smaller window widths due to the sidebar, I know you've added the ability to hide that since this build was released :)
screen shot 2018-03-29 at 9 23 19 pm

Here's Activity Monitor's Energy tab while the two apps are in the foreground. Atom is also Electron-based (same project open there, but in the background), yet uses 1/5 the power.
screen shot 2018-03-29 at 9 21 53 pm

A moment later, with the apps open but in the background. BBEdit is able to shut down most of what it's running and use almost no power, but Reacto continues using resources.
screen shot 2018-03-29 at 9 22 00 pm

Finally, here's a moment after both BBEdit and Reacto are minimized in the Dock, doing nothing.
screen shot 2018-03-29 at 9 28 27 pm

I will look into it as soon as possible. Totally agree with you. I'm still trying to stay organized and not do everything at the same time.

It should be better anytime soon, thanks for the precise report @lachlanjc! I'll update you as soon as there's progress made. :)

@eveningkid Fantastic. Just wanted to bring this to your attention. I think the most important fixes are for when Reacto is in the background/minimized, but there are certainly savings to be made in the active editor as well. Thanks so much for being so responsive and working so hard on this project!

Alright, sorry it's been a while.

Good news though:
screenshot at apr 19 22-26-49

I found what was the major problem causing Reacto to use way too much CPU compared to others! It was simply the file watcher that was using polling although it shouldn't.

I will soon release a new version that will finally be much better! Right now I am working on a lot of things that will for sure bring a much better experience. :)

I'll close the issue. Please give it a try when the new release is out, but it should be working perfectly after I publish changes. ✨

Fabulous! Your sustained work on everything is truly impressive. Thank you 😊