Optimize BSON codec lookup. by vbabanin · Pull Request #1632 · mongodb/mongo-java-driver
- Use `BsonTypeCodecMap` for decoding in `BsonArray` to enable faster access. - Optimize `BsonTypeClassMap` by replacing `Map` with a plain array to eliminate redundant hash computations. JAVA-5339
vbabanin
changed the title
Optimize BSON Array decoding.
Optimize BSON codec lookup.
vbabanin
marked this pull request as ready for review
Using ordinal() ties the mapping to enum declaration order, which risks subtle bugs in the future. JAVA-5339
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters