Don't color each path component separately
Before adoption: this commit came in with the history the project adopted, so no landing records it.
It can be expensive to color each path component separately, requiring a stat() call on each component. For deep hierarchies this can result in quadratic overhead. Instead, just color the path up to the basename as a directory. Fixes #720.
authored by Tavian Barnes · committed by David Peter · parent 21fd013 · Browse files · 1 file+37 added−17 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+37 added−17 removed
- other:+37 added−17 removed