forked from joejulian/gio
go.*,text: update go-text to pick up font transformation caching
This commit picks up improvements in upstream go-text that (among other things) allow the shaper to reuse a lot of information when shaping the same font face multiple times (using an LRU cache to keep that information available). I've tried to pick a reasonable default LRU size of 32 faces. My simple benchmarks indicate a definitive performance gain and reduction in memory use across the board, which is especially noticable for complex fonts like arabic and emoji. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ require (
|
||||
eliasnaur.com/font v0.0.0-20230308162249-dd43949cb42d
|
||||
gioui.org/cpu v0.0.0-20210817075930-8d6a761490d2
|
||||
gioui.org/shader v1.0.6
|
||||
github.com/go-text/typesetting v0.0.0-20230329143336-a38d00edd832
|
||||
github.com/go-text/typesetting v0.0.0-20230405155246-bf9c697c6e16
|
||||
golang.org/x/exp v0.0.0-20221012211006-4de253d81b95
|
||||
golang.org/x/exp/shiny v0.0.0-20220827204233-334a2380cb91
|
||||
golang.org/x/image v0.5.0
|
||||
|
||||
Reference in New Issue
Block a user