Make face.Glyph not allocate a new mask each time.
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%
Showing
想要评论请 注册 或 登录