atom / fuzzy-finder

Find and open files quickly
MIT License
275 stars 138 forks source link

Too high CPU usage with a big project folder even not using the finder #282

Open AlynxZhou opened 7 years ago

AlynxZhou commented 7 years ago

Prerequisites

Description

When a big complex folder is added as an project folder (such as your home directory, please do not tell me that I shouldn't add home as a project folder, because atom atomatically add it when I am editing files in home.), and start to do something (the fuzzy-finder package is enabled but not using its function such as via ctrl-t), run top or other system monitor, you'll see always one core is being used 100%, and let the fan runs, battery is used quickly.

I am sure it's fuzzy-finder's problem because after open atom as safe mode, the problems still there. And after disabling fuzzy-finder, the cpu usage become normal.

It's strange why it cause this even the function is not being used.

Steps to Reproduce

  1. Added a big and complex project folder such as your home.
  2. Open atom with fuzzy finder enabled, but don't use it, just leave enabled.
  3. Open top or other system monitor and see a BEAUTIFUL CPU usage as one core nearly fully loaded, and also the fully-loaded core may be change to other core!

Expected behavior: A normal cpu usage which is always under 10%.

Actual behavior: Always one core was loaded nearly 100%.

Reproduces how often: Nearly every time I did so.

Versions

Output of $ atom --version:

Atom    : 1.15.0
Electron: 1.4.15
Chrome  : 53.0.2785.143
Node    : 6.5.0

Output of $ apm --version:

apm  1.17.0
npm  4.4.1
node 7.7.2 x64
python 2.7.13
git 2.12.0

Output of $ uname -a:

Linux Alynx-Precision 4.10.1-1-ARCH #1 SMP PREEMPT Sun Feb 26 21:08:53 UTC 2017 x86_64 GNU/Linux

Additional Information

Pictures of enabling fuzzy finder:

screenshot from 2017-03-14 12-50-34

screenshot from 2017-03-14 12-50-48

Pictures after disabling it:

screenshot from 2017-03-14 12-50-58

joegiralt commented 7 years ago

I have the same issue.