lkml.org 
[lkml]   [2008]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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,



\
 
 \ /
  Last update: 2008-10-09 09:21    [W:0.063 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site