Re: Looking for a substitute terminal emulator.
Reply #11 –
I've chosen to pick xterm. Went into a rabbit hole as to why it's slow. Found out two things:
1. It isn't. It just processes each output stream per line. Whereas other terminals skip this step. Easily verifiable by redirecting the output an ls -l command in a directory with 10k files to /dev/null with the time command.
2. Using the ls command with colors slows down the output. Also easily verifiable with these tests: (also within the same 10k file directory)
for i in *; do echo "${i}" ; done
or
ls -l --color=never
Note: I'm using vivid for my LS_COLORS which has a lot of colors set for specified file types/extension.
Workaround for #2 is to do this: (source on the bottom-most answer.)
eval `dircolors -b | sed s/or=[^:]*://`
The problem is that it now doesn't show my color config correctly with this workaround. These LS_COLORS seem to be the tty default.
I don't think there are any more terminals for me to test on. Newer terminals in the future will probably be gpu accelerated and as a consequence it consumes a lot of ram.
I will mark this now as solved. Thanks for the tips and suggestions lotuskip and Pragma Once.