Branch: Tag:

2017-06-30

2017-06-30 10:22:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor: Reduce initialization latency.

439:    if (d < delta) delta = d;    }    if (!next_poll) { -  // Attempt to distribute polls evenly at startup. -  delta = 1 + random(delta); +  // Attempt to distribute polls evenly at startup, and to +  // make sure that the full set of directory contents is +  // found reasonably fast. +  delta = 1 + random(delta >> 2);    }       MON_WERR("Next poll in %d seconds.\n", (delta || 1));