CNUB logo Huntington Xavier University
Family Dollar
McDonald's
UDF Dairy Farmers Kroger groceries American Telegraph and Telephone WEBN home page

Page History: NUB

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2009/02/02 09:11


NUB Download
Download nub-0.3.0.zip

NUB on SourceForge

NUB is a set of high performance C++ codes. Currently providing indexes for variable-length keys, compressed resource files, and an istream interface for blocks of memory. Now supports Unicode keys and upto 17 trillion gigabyte file sizes.


News

2009-02-02: NUB 0.3.0 released. Generalized Index to a customizable template. Unicode keys now supported.

2009-01-30: NUB 0.2.0 released. Now includes support for huge index and resource files. File offsets are now 64 bits allowing file sizes up to 17 trillion gigabytes.


A Note on NUB Index Files

NUB indexes target storing ASCIIZ variable-length keys to resource files in a highly efficient manner. Because of this requirement, nub indexes are not B-trees but very similar. B-trees are a variant of M-way branching trees. NUB indexes are not of any particular order M. Instead, each node packs in as many keys as will fit.

There are currently no special codes to balance the tree during insert and delete so a tree can become badly unbalanced under certain dynamic circumstances. To compensate for this, I am working on a function Index::pack() which will balance the tree and optimize it for fastest access. This would be used once your resource file is complete (prior to release). I should warn you that for very large indexes this function takes a good bit of time.

Since NUB now supports huge files, I am re-thinking the pack() approach. It may be more appropriate to work on the extra codes needed to do some balancing on the fly.


History

NUB grew out of a start on the Johnny Bashful project. Unfortunately, independent development takes too long these days. The project died for lack of my time to spend on it. It may get resurrected some day. The NUB project is currently undergoing refinement. Support for Unicode keys plus huge index and resource files (64-bit) coming soon (DONE!). Index::pack() is next on the list. I have made one attempt at it, but it resulted in fast but large indexes in some cases. But as I said above, this might not be the best way to go forward from here.