Closed RoelN closed 3 years ago
@pascalw Interesting, thanks! With which font(s) did you test? It would be interesting to see a relatively complex font (large charset, many OT layout features, variable axes) as that might give different results than a simple font.
That said, with these minuscule benchmark times, this has "premature optimization" written all over it. Let's close this issue and open a new one when we actually run into slowdown!
This is data from SourceCodePro-Regular
.
I did some very basic benchmarking and nothing really jumps out needing any memoization or other perf improvements:
These are all measurements of operations on a fresh Fondue instance, excluding the
loadFondue()
call itself.Granted this is on a high-end machine, running in Node. A lowend machine running WF in the browser might be a bit slower, but it doesn't seem worth it yet to optimize anything.
@RoelN WDYT?