1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-13 19:02:02 +02:00

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.
This commit is contained in:
Jim Meyering
2010-06-04 15:30:47 +02:00
parent 4cb8268024
commit 98d48bb0e9

View File

@@ -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;