-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Pressing enter for long cause CPU to shootup 100% #3563
Comments
I assume you got really angry at your code? |
Lol no. I saw a little lag while inserting new line so tested. |
I think large buffers still pose some problem, and 1000 lines may start to hit some ceilings, although I'm not sure. |
@batjko 1000 empty lines shouldn't be a big deal, that would be less than 1K (2K on Windows because of the different line endings). |
I know it won't make the file big enough to matter, but I wonder if the number of lines has an impact on buffer handling somewhere in the same vein? Otherwise, maybe something with some keytroke or command cache filling up? And yes, I'm just throwing words into the ring now. |
@v3ss0n Could you profile it? Open the dev tools, click the profiles tabs, select Collect JavaScript CPU Profile, and click Start. Then perform the actions in the editor, once you've hit the problem, hit stop, then take a screenshot. |
Ok i will see |
@v3ss0n I updated my previous comment, I hit the comment button before finishing all the steps, sorry. |
https://gist.github.com/v3ss0n/821db315a149eb878954 I tested with 129 build , which i updated yesterday , on this build , CPU shoots up 100% But it dosen't stay up there , and no more crashed. Latest master is also pulling , will test and report again. |
@kevinsawicki One thing i noticed: when Same document is opened in different split , either it is focused or not , it takes huge performance hit when entering new line. |
Anything new on this? |
Accidentally closed , CPU still hits > 100% as of latest commit , 443df29 So , shall we consider this partially fixed? |
Going to close this as there's been no additional reports/commentary on this for 2 years. |
It was gone since 1.x releases thanks. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Performance regression while entering new lines.
After 2-3 secs CPU will shoot up to 100% of pressing and holding enter.
Tested with --safe, after about 1000 lines Atom gives up , quit with a crash.
Also tested with auto-save turned off.
The text was updated successfully, but these errors were encountered: