3 ms·
This really started to bother me. How does terminal emulator speed up grepping a large file? I made a random file with 100 000 lines and using 3 different term
by nextlevelwizard 4y ago
This really started to bother me. How does terminal emulator speed up grepping a large file?
I made a random file with 100 000 lines and using 3 different terminals (Default Terminal, iTerm2, and Kitty) and using two different grep tools (grep and rip-grep) with and without tmux I can not see any meaningful performance difference.
Do I just not understand what terminal emulators do? How does choice of text printing matter when you run a script?
I could see a tiny performance improvement with kitty when I ran just cat on the file in a loop, but the difference was so tiny that if you want to argue that this is the performance benefit worth using kitty for I have bad news for you since the worst case with kitty was then noticeably worse than in competition.