Aug 102012
Release Notes:
NOTES: Major version increment primarily due to extensive changes in BPlusTree’s capabilities and storage format. The next release will flag the v1 Options class as Obsolete to ensure people are using the latest version. All new code should be using ‘OptionsV2′ when constructing a BPlusTree.
Additions in this release:
- Added BPlusTree.OptionsV2 to provide a more simple set of options and uses the v2 file format.
- BPlusTree now supports key range enumeration as well as accessing first/last key in the tree.
- BPlusTree now supports optimized AddRange and BulkInsert methods.
- BPlusTree now supports transaction logging for improved durability and recovery.
- BPlusTree now has a completely new file format (use the OptionsV2 class) for improved performance and reliability.
- The generator’s ResXtoMC complier now supports application manifest files and the inclusion of win32 resource files.
- Added the IConcurrentDictionary interface to provide an abstraction on concurrent dictionary implementations.
- BPlusTree now supports all relevent members of the .NET ConcurrentDictionary class and implements IConcurrentDictionary.
- Updated SynchronizedDictionary to implement IConcurrentDictionary, great for testing code without a BPlusTree backend.
- Added BTreeDictionary<TKey,TValue> to support in-memory always sorted key/value dictionary.
- Added BTreeList<T> to support an in-memory B+Tree backed sorted list.
- Added collection classes to deal with KeyValue comparision, ordering, enumerating, etc.
- Added MergeSort (stable sorting) static class for more efficient sorting with custom comparer implementations.
- Added an alternative to FragmentedFile called TransactedCompoundFile to support the rewite of the BPlusTree file format.
- CmdTool.exe now supports a boolean ‘stop’ attribute on the FileMatch tag, allowing complete override of files that appear higher in the folder structure.
Fixes in this release:
- XmlLightElement CDATA handling was incorrectly decoding html content.
- OrdinalList had a bug in the IntersectWith and UnionWith implementations where the inputs were the same length.
- BPlusTree enumeration of Keys or Values would load the entire tree into a list, this is now fixed.
Breaking changes in this release:
- The following breaking changes were made to BPlusTree to bring it’s concurrent interface members inline with .NET 4′s ConcurrentDictionary.
- BPlusTree changed the delegate type provided to TryUpdate to include both Key and Value.
- BPlusTree changed the method name and delegate type of Add(TKey, delegate) to TryAdd(TKey, delegate).
- BPlusTree changed the delegate types provided to AddOrUpdate to include both Key and Value.
- BPlusTree.Options is still backwards compatible with existing files; however, BPlusTree.OptionsV2 uses a new format.
For more information on the BPlusTree changes read BPlusTree 2.0 Changes Part 1 – Interface Changes