Klaus Demo nginx / 0e32306
fix comment Igor Sysoev 13 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4141 }
4242
4343 /*
44 * The preallocation the first nodes: 0, 1, 00, 01, 10, 11, 000, 001, etc.
45 * increases the TLB hits even if for the first lookup iterations.
46 * On the 32-bit platforms the 7 preallocated bits takes continuous 4K,
47 * 8 - 8K, 9 - 16K, etc. On the 64-bit platforms the 6 preallocated bits
44 * Preallocation of first nodes : 0, 1, 00, 01, 10, 11, 000, 001, etc.
45 * increases TLB hits even if for first lookup iterations.
46 * On 32-bit platforms the 7 preallocated bits takes continuous 4K,
47 * 8 - 8K, 9 - 16K, etc. On 64-bit platforms the 6 preallocated bits
4848 * takes continuous 4K, 7 - 8K, 8 - 16K, etc. There is no sense to
4949 * to preallocate more than one page, because further preallocation
50 * distributes the only bit per page. Instead, the random insertion
50 * distributes the only bit per page. Instead, a random insertion
5151 * may distribute several bits per page.
5252 *
5353 * Thus, by default we preallocate maximum