mongodb/mongo-csharp-driver — pull request #114 by optimiz3 (2012-06-07 22:10:06+00:00)
Title: Small cleanup refactoring follow up for pull request 113

1. Factored out four branches in BsonTrieNode.GetChild
a. Eliminated the need to check _isFrozen
b. Eliminated the need to check _minKeyByte
c. Eliminated a CLR bounds check on _keyByteIndexes
d. Eliminated a CLR bounds check on _children
2. Factored out the maxKeyByte member in BsonTrieNode
3. Refactored a foreach into a for in BsonTrie.TryGetValue (for is faster than foreach on arrays due to better CLR support)
4. Made BsonBuffer.DecodeUtf8String static
5. Factored out a branch in BsonBuffer.DecodeUtf8String
a. Eliminated a CLR bounds check on __asciiStringTable
6. Variables in BsonBuffer.IndexOfNull had been switched to post increment counters when this wasn't needed
7. Fixed a comment typo in BsonTrie.TryGetValue
8. Fixed an XML comment error