dnickless

Results 6 issues of dnickless

https://github.com/Azure/DotNetty/blob/47f5ec7303037f1360615d182939e04d8619a2b3/src/DotNetty.Common/FastThreadLocal.cs#L32 I think that comment is unpleasantly true, you will need to create a clone as you're removing items from the collection that you're iterating over... This is what I'm...

Eliminated some boxing problems leading to substantial allocations in our code. Details located here: https://jira.mongodb.org/browse/CSHARP-4292

`TypeNameDiscriminator` is a static helper class that kicks in during serialization and deserialization when using type names as discriminators. There currently is quite some reflection and string-fiddling inside two crucial...

The `BsonClassMapSerializer.DeserializeClass(BsonDeserializationContext context)` method contained code to handle two basic cases depending on the value of `_classMap.HasCreatorMaps`: The deserialization using a `Dictionary` and the "standard" deserialization. By introducing a strategy...

serialization
refactoring

There was some reflection code in the `Deserialize` method which would get called repeatedly. But since the ClassMap is frozen (gets checked in the constructor) it should be sufficient to...

serialization
performance

May I suggest another performance optimization around the hex string to byte array (and back) conversion methods in `BsonUtils`. This change introduces some precalculated jump tables that cost a tiny...

serialization
performance