Messages in this thread | | | Date | Thu, 09 Oct 2008 16:17:50 +0900 | From | Kentaro Takeda <> | Subject | Re: [TOMOYO #10 (linux-next) 4/8] Memory and pathname management functions. |
| |
KAMEZAWA Hiroyuki wrote: >> + >> +#define MAX_HASH 256 >> + > Maybe based on typical workload and usage but > It's better to write why hash size is fixed size of "256", when you > use hash. TOMOYO uses this hash only when appending a string into the string table. Frequency of appending strings is very low. So we don't need large (e.g. 64k) hash size. 256 will be sufficient.
I'll append above as a comment.
Regards,
| |