by arca_vorago · 9y ago · 0 comments
Also, at first I wondered why vi wasn't on there, but for those of you who thought the same, nvi is berkely vi (TIL).
I like that emacs performs in the middle of the road in most of these cases, because it shows stability but room for improvement. Dissapointed with the large file results, but they are useful. (using vi on big files from now, it's a problem I run into more and more)
However I've had no difficulty using it to view 3GByte files with 80-column lines. I don't have one handy to try but I did quickly load a 450MByte text file (6m lines, most 76 chars) and it took about 3 seconds to load.
I also have the following function in my .zshrc to disable "word wrap", specifically for when I need to read large log files that may have very long lines:
emacsr () {
emacs -nw "$1" --eval '(progn (setq buffer-read-only t) (setq truncate-lines t))'
}
I haven't noticed if it makes loading the files much faster (the lines aren't that long), but definitely makes it easier to read them in a terminal.i dream of an editor with the flexibility of emacs that but the bug-freeness and speed of sublime. :)
Also an option: C-x [ (backward-page) and C-x ] (forward-page) to move between occurrences of ^L (ASCII 12 - you can enter it in a buffer with C-q C-l).
Come on emacs, other editors can handle them! :)
I don't tend to open files in excess of 100MiB, or do more than about 20k replaces in a file interactively, so I never really notice latency on operations.
Its actually awesome - I only stopped because my wrists..
The importance is that things like 'magit-status be instantaneously snappy to open, which currently leaves a lot to be desired.
And I also use emacsclient, which make it just instant.
There's also addon tools like vlfi if you're editing very large files on a regular basis.
I'd be more interested in ~200MB instead of 3 GB as I find myself more frequently opening log files and XML exports in the 100-500MB range.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Pr...
https://www.emacswiki.org/emacs/EmacsNativeProfiler
Also, ESUP for profiling your startup time:
https://github.com/jschaf/esup
There's also a second profiler in Emacs, ELP, which can be used for testing individual functions: