-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
We have noticed, partly based on the comment here, that the following map is massive:
textlayout/fonts/glyphsnames/glyphs.go
Line 118 in f0394e7
| var glyphAliases = map[string]string{ // 2462 entries |
A map of, according to the comment, 2462 different strings result in a lot of memory usage and quite a huge piece of binary size increases. Can this map be reduced in any way, only created when actually needed or something like that? It might make sense to convert it into one large switch-case (especially now that Go 1.19 uses jump tables for large int and string switch cases) as the Go compiler more easily can optimize that but it would have to be tested to make sure that it isn't noticeably slower.
Metadata
Metadata
Assignees
Labels
No labels