• N
    Make face.Glyph not allocate a new mask each time. · 9c46b875
    Nigel Tao 提交于
    benchmark                 old ns/op     new ns/op     delta
    BenchmarkDrawString-4     96914389      88683659      -8.49%
    
    benchmark                 old allocs     new allocs     delta
    BenchmarkDrawString-4     32287          0              -100.00%
    
    benchmark                 old bytes     new bytes     delta
    BenchmarkDrawString-4     1929619       156           -99.99%
    9c46b875
face.go 6.3 KB