diff options
author | Jim Meyering <meyering@redhat.com> | 2010-06-04 15:30:47 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-07-04 11:15:48 +0200 |
commit | 98d48bb0e9b771d95ee2cc2f57e73e1750e465cc (patch) | |
tree | 02ef7701eeb2ea1432abeb67dc9b03980bf1e40a /src | |
parent | 4cb826802413516852a89739454a73c7a6ad0bd8 (diff) | |
download | coreutils-98d48bb0e9b771d95ee2cc2f57e73e1750e465cc.tar.xz |
du: increase the initial dev-inode set size
* src/du.c (INITIAL_DI_SET_SIZE): Increase to the prime just under
1024. This gives a speed-up of about 2% when processing a tree
containing 100,000 files, each with a link count greater than 1,
all pointing to files in some other tree.
Diffstat (limited to 'src')
-rw-r--r-- | src/du.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ extern bool fts_debug; #endif /* Initial size of the hash table. */ -enum { INITIAL_DI_SET_SIZE = 103 }; +enum { INITIAL_DI_SET_SIZE = 1021 }; /* A set of dev/ino pairs. */ static struct di_set_state di_set; |