• Steven Allen's avatar
    Optimize readByte · 3c783b99
    Steven Allen authored
    Type asserting to a concrete type is ~10x faster than type asserting to an
    interface. This change has a significant performance impact in my test. readByte
    used to account for 10.8% of the time, now it accounts for 3.4%.
    3c783b99
utils.go 14.7 KB