Skip to content

Commit 9de8c88

Browse files
committed
bson/bsoncodec: code review comments
1 parent 7bb0482 commit 9de8c88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bson/bsoncodec/codec_cache_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"testing"
1414
)
1515

16+
// NB(charlie): the array size is a power of 2 because we use the remainder of
17+
// it (mod) in benchmarks and that is faster when the size is a power of 2.
1618
var codecCacheTestTypes = [16]reflect.Type{
1719
reflect.TypeOf(uint8(0)),
1820
reflect.TypeOf(uint16(0)),

0 commit comments

Comments
 (0)