-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poor performance in files with >1000 lines #16
Comments
Ouch ... that is an issue. I'll take a look at the code and see what I can do. |
So after looking at the code extensively, I have a couple optimizations in mind. Though I ran both a tabify and untabify on save on a 3,364 line file and it only took ~1.7 seconds for each. Can you give me some details about how deeply nested the lines are? What sort of hardware are you running on? |
Hardware:
Its an HP Z600 Workstation |
Here is an good example file: https://raw.githubusercontent.com/Fankserver/ArmA3-Missions/master/%5BFS%5Dco16_Altis_Kart.Altis/mission.sqm Enter a new line somewhere and save |
Here is a better example http://code.jquery.com/jquery-git2.js |
Thanks! I'll take a look at them this weekend!
|
Even tabifying the large JS file only took 3.15s on my machine. I've got a brand-new Core i7 and 32GB of RAM, so maybe that has something to do with it. I have a couple optimizations in mind. |
Tested with 0.8.1 no change still slow |
Yes, v0.8.1 was for eliminating deprecations. I'm still investigating the performance as I can, though it appears that the majority of time is spent outside of my code. My current recommendation if you have large files that you're commonly working on is to disable the on-save behavior and only normalize manually. |
Tested with http://code.jquery.com/jquery-git2.js and version 0.9.0 -> 4498ms on windows |
The Atom team is working on a rewrite of the internals of Atom's text processing system which should help the find-and-replace performance when it gets integrated: |
I am having the same problems, and if it took 60 seconds, I'd feel fortunate. I'm running on a Macbook Pro 16GB, i7. My files are not highly nested. Most of the ones where I have problems are test data files with a lot of JSON, some ranging 10K - 20K lines. |
Same problem here, it even leads to atom freezing and requiring forced kill. Maybe we could add a warning of possible performance issues beside the option? |
Thanks @andya9 for referencing my issue from the atom thread. Looking forward to a solution ;-) For now, I follow the advice to disable the on-save functionality. |
@lee-dohm I can confirm its much faster. Changing ~5000 lines takes about 10-15 sec that is ok for me. |
Thanks for the update, @Fank! I'll go ahead and close it then. As the find-and-replace performance gets better, so will this. |
I noticed this issue in some larger files, for example i save a file with 5000 lines it will take about to 60seconds to proceed the save.
Tested files where perl modules (.pm) and mason (.*).
My config is:
The text was updated successfully, but these errors were encountered: