Submitted via IRC for TheMightyBuzzard
A new major release of open source text editor GNU nano is here. GNU nano 3.0 reads files 70% faster and brings several other features.
GNU nano is one of the most popular terminal based text editors. Those who keep forgetting how to exit Vim, seek refuge with GNU nano. It's a godsend for beginners who have to deal with editing in the command line while the experienced nano fans just swear by it.
I wouldn't normally consider a new version of a text editor really newsworthy but a 70% read speed increase is interesting to investigate even if only for an example of how not to do things from the prior versions.
Source: https://itsfoss.com/nano-3-release/
(Score: 0) by Anonymous Coward on Sunday September 16 2018, @04:04PM (1 child)
Why the fuck is it reading files byte-by-byte in the first place? That's so fucking stupid. It'd be way faster if they'd just fread() into a buffer as needed and scan through the buffer. Good grief. Damn kids.
(Score: 2) by jmorris on Sunday September 16 2018, @05:20PM
Because it didn't matter. It was a toy editor for quick jobs, mostly replacing the Pico editor in the PINE email client that ran into licensing stupidity awhile back and went away for a bit to get rewritten around the parts that couldn't be relicensed. Think it is Alpine now.