typelead/etlas

REPL uses too much processor time even when doing nothing

mnn opened this issue · 3 comments

mnn commented

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

@mnn Seems related to #839

mnn commented

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

This is fixed with the latest Eta. See typelead/eta#839