fix comment
Igor Sysoev
13 years ago
41 | 41 | } |
42 | 42 | |
43 | 43 | /* |
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 | |
48 | 48 | * takes continuous 4K, 7 - 8K, 8 - 16K, etc. There is no sense to |
49 | 49 | * 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 | |
51 | 51 | * may distribute several bits per page. |
52 | 52 | * |
53 | 53 | * Thus, by default we preallocate maximum |