mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
acdc74dbf5fb1b7b7d3a71d2f6ebce55b966078d
Before, it processed O(n^2) directory name components via stat and mkdir. Now it's O(n). This makes mkdir -p a lot more efficient when creating directories with very many components. On a Linux 2.0.30 ext2fs filesystem this command: mkdir -p `perl -e 'print "a/" x 500'` now runs in 0.77 seconds (user+sys). Contrast that with the 9.5(!) seconds it took before.
Languages
C
55.1%
Shell
29.1%
Perl
11.6%
Makefile
2.2%
M4
0.9%
Other
1.1%