jasongilman / proto-repl

A Clojure Development Environment package for the Atom editor
https://atom.io/packages/proto-repl
MIT License
563 stars 50 forks source link

Loading indicator using a lot of CPU #278

Open tosh opened 7 years ago

tosh commented 7 years ago

I recognized my Macbook getting a bit hot and looked into the activity monitor:

screen shot 2017-09-16 at 11 23 13 pm

When I switched to Atom to see what's going on I found that it was still showing a loading indicator from a form that I evaluated previously. As soon as I made the loading indicator go away (copying, deleting and pasting the surrounding text) the CPU usage dropped back down.

Semi-unrelated: It seems like sometimes the loading indicator is sticky, I usually just delete the surrounding text and paste it back into the document to go away but I didn't notice this time so It kept animating for a few minutes until I noticed the laptop heating up.

How to replicate

add the following to your file and then evaluate the form

(Thread/sleep 1000)