I'm sure regex would be faster, but that's not something I care to work with on a regular basis. What drew me back to Emacs this time (third time over 20 years) was the ability to hack the editor and make it do what I want, in the way that I want to work. Unfortunately, I do find myself working with quite a few large files occasionally with my work, and I think it's silly to have to disable certain modes to be able to run a simple macro on a large text file. In fundamental-mode, it took only 1.6 seconds!!! But switching back into python-mode took about 35 seconds of "processing" until I could navigate without any lag. Took only 31.96 seconds in "default everything" emacs (still using python-mode though) emacs file at all, just plain vanilla default everything emacs, and things got a bit more interesting: I don't have that many packages installed, but I imagine something like highlight-indent-guides-mode and maybe even company-mode might be slowing things down. It took about 2 full minutes for it to finish processing something until I could navigate without any lag. In fundamental-mode, it only took 7.06 seconds and 7.52 seconds! However, when I switched back to python-mode, navigating around the document was extremely slow! C-v, M-v, M- took forever with some crazy lag time, and my CPU usage kicked up and even turned my CPU fan on. Did it again (restarted Emacs to make sure there was no caching) and got 1 minute and 22 seconds on the second run. So I just tried a few tests to see what was going on, and here are my findings:ฤก minute and 18.28 seconds in Emacs using a simple delete and avoiding the kill ring by not using C-k.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |