Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jimmyco2008

macrumors regular
Original poster
Jan 8, 2014
189
8
I noticed the battery life in my Macbook Pro draining very quickly, and eventually narrowed the culprit down to Coda 2.

I would keep an eye on activity monitor and find that Coda 2 would spike to ~100% CPU usage (you know, 100% of one core).

After working with Panic's support, I've narrowed the problem down to Google Analytics Js. According to the sample of the Coda 2 process that was using 100% CPU, JavaScript was constantly running in the background and causing the spike.

I'm still not sure if I believe Panic's analysis 100%, but I'm no good at reading process sample txt files... Regardless, it would seem Js is in fact the culprit- after nulling the <script> for GA (the only Js on this particular site), and refreshing the preview (it only spikes when a preview is open, and I often have a preview just sitting on another desktop while working on code), the CPU usage for Coda went from ~100% to virtually zip.

According to Panic, it's an issue with Webkit, and it will be solved when Webkit v2 becomes open-source.

Anyone else out there experience this issue? Anyone want to volunteer for a second opinion on the sample txt file?


Also, I've noticed this issue since Coda 2.0.12 and I am on 2.0.14 now. Doesn't matter if I'm on Mavericks or Yosemite, either.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.