Code Monkey home page Code Monkey logo

Comments (3)

jbaron avatar jbaron commented on August 29, 2024

If I remember correctly there are one of two calls to the TyepeScript
language servicces that are not yet conditional (so they happen regardless
if code has changed or not). This could be optimized and should reduce load
while the IDE is idle.

If you see the heartbeat moving (at the status bar in the bottom of the
screen), there is something going on in the background. The main thread is
invoking the webworker for some language service call.

-- Peter

On Wed, Feb 18, 2015 at 6:27 AM, alexwall [email protected] wrote:

Hi,

cats (node) have cpu usage of 5-15% in idle
I use this version 8386666
8386666

β€”
Reply to this email directly or view it on GitHub
#144.

from cats.

alexwall avatar alexwall commented on August 29, 2024

Ok the "heartbeat" is not moving, it's pure idle mode

from cats.

jbaron avatar jbaron commented on August 29, 2024

Did some more checking and my findings:

  1. If no project is loaded at all, the cpu usage is close to 0%. So this is expected behaviour.

  2. If a project is loaded (but no editor is opened yet), the cpu usage indeed goes up (for me a bit less than 5% average, but I guess depends on things like CPU, type of hardest etc). The only background activity that is now going on is the fs.watch on the open project directories in order to determine if someone is adding or deleting a file.

BTW, right now CATS doesn’t release the directory watcher once a user closed the tree of that directory in the navigation tab. This could still be optimized.

  1. If also file editors are opened, the cpu increases a bit more, but still stays below 10%, This could be further decreased by smarter dealing with changes and less often call the worker thread.

So it seems the fs.watch (at least on OS X) takes more CPU that one would expect to check a few directories.

β€” Peter

On 21 Feb 2015, at 17:01, alexwall [email protected] wrote:

Ok the "heartbeat" is not moving, it's pure idle mode

β€”
Reply to this email directly or view it on GitHub #144 (comment).

from cats.

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.