GithubHelp home page GithubHelp logo

high CPU usage about beacon HOT 6 CLOSED

tpapp avatar tpapp commented on July 16, 2024
high CPU usage

from beacon.

Comments (6)

gdanov avatar gdanov commented on July 16, 2024

I started seeing this once I began working on js project and by monitoring the timer list I figured out beacon mode causes emacs to constantly use 10-13% cpu on quad core mac. Not sure how connected the switch to js was.

profiling did not help me, but list-timers showed growing (10 or more) list of beacon timers even when I had only handful open files. once killed, emacs is smooth again and idle cpu usage is neglectable.

what I noticed when profiling was that the CPU spent 80% of the cycles in GC. Not sure how true this was and if it is connected to this issue.

from beacon.

Malabarba avatar Malabarba commented on July 16, 2024

A just pushed a commit that might resolve this. Could you test it again once Melpa rebuilds?

I admit it's a bit of a long shot though. Looking at the code, beacon should never have more than one active timer (in fact, it will generally have no timers). But maybe I missed something.

from beacon.

gdanov avatar gdanov commented on July 16, 2024

updated ~1h ago, enabled beacon and so far looks very good. zero timers visible, cpu idling.

thanks!

from beacon.

tpapp avatar tpapp commented on July 16, 2024

I have been testing it today and it looks fine so far, will give it a few days and then report back (for me the bug was somewhat occasional, so I want to make sure that this is the fix).

from beacon.

Knusper avatar Knusper commented on July 16, 2024

I also had the issue with high CPU issue with an older version, but since having installed 20190104.1931 from melpa I do not experience the issue anymore.

from beacon.

tpapp avatar tpapp commented on July 16, 2024

Sorry that I forgot to report back on this. Although the high CPU usage issue was resolved, I am still seeing a spike in CPU whenever I switch frames and see the beacon-mode animation, so I stopped using the package. But as far as I am concerned, the original issue can be closed.

from beacon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.