3 ms·
I use nano, but I have to say I am very surprised that they mentioned it as a viewer for large binary files. It reads the entire file off of disk into memory an
by saagarjha 7y ago
I use nano, but I have to say I am very surprised that they mentioned it as a viewer for large binary files. It reads the entire file off of disk into memory and then tries to split it into lines! It can't even do well on files with large enough lines :(
- d2wa 7y agoNano reads large files in chunks. Other text editors do indeed pull in the entire file before doing anything useful.
- saagarjha 7y agoNo, it reads the whole file at once: https://git.savannah.gnu.org/cgit/nano.git/tree/src/files.c#n671 https://git.savannah.gnu.org/cgit/nano.git/tree/src/files.c#....