[lvm-devel] [PATCH 12/24] Perf: Increase hash sizes

Zdenek Kabelac zkabelac at redhat.com
Sun Jan 30 20:54:11 UTC 2011


Dne 30.1.2011 21:35, Milan Broz napsal(a):
> On 01/30/2011 01:57 PM, Zdenek Kabelac wrote:
>> Modify size of created hash tables in a way, it could be uniquely
>> identified in debug code - as hash will be rouned up to nearest power
> 
> code obfuscation :) can we better add new has function or macro
> which takes some identifier? (similar to pool create)
> 
> Why do you need such hacks?

Well I've been thinking about few solutions - for this - so take this
just as an initial 'startup' - whether we want to extend API
with some new function with string parameter for hash description - or as some
'debug - like' version, which is compiled only with some debug option enabled.

Meanwhile - this was rather very easy 'quick and see' - as we don't have
named hashes, like we have for pools.

This hash part needs some polishing.

Zdenek




More information about the lvm-devel mailing list