On Wed, Aug 23, 2006 at 05:05:55PM +0200, Zoran Vasiljevic wrote:

> I'm interesed to find out what do you think about
> speeding up the set operation by a help hash-table?
> This would minimize the time the lock is held and
> would therefore lower the impact of locking altogether.

That's only necessary to preserve the current ns_config
case-insensitivity, right?  Wouldn't it be easier to just canonicalize
the key values on both write and read?  E.g., create a wrapper around
nsv which forces all keys to all lowercase.  Then the key "Foo_Bar"
will be automatically translated to "foo_bar" in all situations.

-- 
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com/

Reply via email to