Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tyingq
· 7y ago · 0 comments
I suspect something like "ls | cat" would speed it up as well. Probably tests if stdout is a tty before bothering with stat() and color logic.
Comments
[–]
kilianc
7y ago
True, but then you would loose all the coloring. By targeting only the attributes that generate additional syscalls, you can keep the vast majority of the colors and get a nice speed bump. Win win.