On Tue, Oct 25, 2016 at 9:40 PM, David M. <
manxi...@gmail.com> wrote:
> Is the Go freetype library optimized? Should I expect a similar performance
> from the original C version? Why freetype don't use an internal cache to
> store most frequent characters?
Go freetype has had some performance work, but not a lot.
I don't have any hard data, but I'd expect it to be e.g. within 2x
worse of the original C version, but not as bad as than 10x worse.
Go freetype should use an internal cache for glyph image masks. Do you
have evidence that this cache is not being used?
Can you link to your code?
The
https://blog.golang.org/profiling-go-programs blog post is a
little old, but it should still give some leads on how to profile your
Go code at the function level, not just a coarse "70 fps" number.