typelead / etlas

Etlas, the build tool and package manager for the Eta programming language
63 stars 10 forks source link

REPL uses too much processor time even when doing nothing #69

Closed mnn closed 6 years ago

mnn commented 6 years ago

When I run etlas repl (even in a directory without any modules, any eta code/project) and just let it be (not inputting anything), it constantly uses ~170% of CPU time of a quad core processor (so full load would be 400%). Load is distributed evenly between cores, each around 45%. It is still responsive, properly reacts to input.

Process: java -jar /home/xxx/.etlas/binaries/cdnverify.eta-lang.org/eta-0.8.0.2/binaries/x86_64-linux/eta-serv.jar

$ etlas --version
etlas version 1.4.0.0
compiled using version 2.1.0.0 of the etlas-cabal library
$ java -version 
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

OS: Kubuntu 16.04

rahulmutt commented 6 years ago

@mnn Seems related to #839

mnn commented 6 years ago

Yes, it might be, I was looking at that issue (I am the monnef :smiley:). But in this case the load is spread uniformly across all cores, not fully using any core. In https://github.com/typelead/eta/issues/839 (at least in my case) it was mainly stressing only one core and I think one other core was at really low usage.

rahulmutt commented 6 years ago

This is fixed with the latest Eta. See https://github.com/typelead/eta/issues/839