Re: [RFC] B+Tree library

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jörn
Date: Friday, October 31, 2008 - 4:26 am

On Fri, 31 October 2008 11:35:14 +0100, Johannes Berg wrote:

It did?


Variable as in one implementation for several trees with different
sizes, yes.  Variable as in one tree with differently sized keys, no.

With the existing code, 48bit keys would need to be expressed as an
array of longs, thereby growing to 64bit.  Alternatively one could
replace the longset/longcmp/longcpy with memset/memcmp/memcpy.


MAC address wouldn't be a problem.  For BSSID+SSID one could just keep
the hashing and use the btree as an 'implementation detail' of the
'hashtable'.  Beware that I don't allow two identical keys.  The
implications of that make my toenails curl up.


Indeed.

Jörn

-- 
Joern's library part 7:
http://www.usenix.org/publications/library/proceedings/neworl/full_papers/mckusick.a
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] B+Tree library, Jörn, (Sun Oct 26, 5:46 am)
Re: [RFC] B+Tree library, Dave Chinner, (Mon Oct 27, 6:25 pm)
Re: [RFC] B+Tree library, Pavel Machek, (Thu Oct 30, 10:43 am)
Re: [RFC] B+Tree library, Jörn, (Thu Oct 30, 10:58 am)
Re: [RFC] B+Tree library, Pavel Machek, (Thu Oct 30, 12:14 pm)
Re: [RFC] B+Tree library, Jörn, (Thu Oct 30, 1:20 pm)
Re: [RFC] B+Tree library, Christian Borntraeger, (Thu Oct 30, 11:38 pm)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 12:35 am)
Re: [RFC] B+Tree library, Geert Uytterhoeven, (Fri Oct 31, 2:16 am)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 2:20 am)
Re: [RFC] B+Tree library, Johannes Berg, (Fri Oct 31, 3:35 am)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 4:26 am)
Re: [RFC] B+Tree library, Johannes Berg, (Fri Oct 31, 4:32 am)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 5:54 am)
Re: [RFC] B+Tree library, Johannes Berg, (Fri Oct 31, 6:07 am)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 6:15 am)
Re: [RFC] B+Tree library, Johannes Berg, (Fri Oct 31, 6:16 am)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 6:29 am)
Re: [RFC] B+Tree library, Bert Wesarg, (Fri Oct 31, 6:45 am)
Re: [RFC] B+Tree library, Tim Gardner, (Fri Oct 31, 8:18 am)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 8:35 am)
Re: [RFC] B+Tree library, Sean Young, (Fri Oct 31, 1:17 pm)
Re: [RFC] B+Tree library, Jörn, (Fri Oct 31, 4:36 pm)
Re: [RFC] B+Tree library, Sean Young, (Sat Nov 1, 3:17 am)
[RFC] B+Tree library V2, Jörn, (Sat Nov 1, 8:59 am)
Re: [RFC] B+Tree library V2, Johannes Berg, (Wed Nov 5, 12:57 pm)
Re: [RFC] B+Tree library V2, Jörn, (Wed Nov 5, 1:06 pm)
Re: [RFC] B+Tree library V2, Johannes Berg, (Wed Nov 5, 1:12 pm)
Re: [RFC] B+Tree library V2, Jörn, (Wed Nov 5, 1:21 pm)
Re: [RFC] B+Tree library V2, Johannes Berg, (Wed Nov 5, 1:25 pm)
Re: [RFC] B+Tree library V2, Jörn, (Fri Nov 7, 12:52 am)
Re: [RFC] B+Tree library V2, Johannes Berg, (Wed Jan 7, 5:57 pm)
Re: [RFC] B+Tree library V2, =?utf-8?B?SsO2cm4=?= ..., (Thu Jan 8, 9:24 am)
Re: [RFC] B+Tree library V2, Johannes Berg, (Thu Jan 8, 9:34 am)
Re: [RFC] B+Tree library V2, Johannes Berg, (Thu Jan 8, 9:50 am)
Re: [RFC] B+Tree library V2, Johannes Berg, (Thu Jan 8, 10:10 am)
Re: [RFC] B+Tree library V2, =?utf-8?B?SsO2cm4=?= ..., (Thu Jan 8, 12:40 pm)
Re: [RFC] B+Tree library V2, =?utf-8?B?SsO2cm4=?= ..., (Thu Jan 8, 12:46 pm)
Re: [RFC] B+Tree library V2, =?utf-8?B?SsO2cm4=?= ..., (Thu Jan 8, 1:02 pm)
Re: [RFC] B+Tree library V2, Johannes Berg, (Thu Jan 8, 1:18 pm)
Re: [RFC] B+Tree library V2, =?utf-8?B?SsO2cm4=?= ..., (Thu Jan 8, 2:09 pm)