A vast majority of binary package usages is only for BigEndian and LittleEndian.
As a breakdown of all binary usages:
- 75% is for endian-based operations (does not depend on reflection)
- 23% is for
Read/Write operations (depends on reflection)
- 2% is for varint operations (does not depend on reflection)
For the 77% of use cases where the logic does not touch binary.{Read,Write,Size}, the resulting binary should not be forced to also link in the reflect package.
A vast majority of
binarypackage usages is only forBigEndianandLittleEndian.As a breakdown of all
binaryusages:Read/Writeoperations (depends on reflection)For the 77% of use cases where the logic does not touch
binary.{Read,Write,Size}, the resulting binary should not be forced to also link in thereflectpackage.