Large Unicode fonts might be parsed tens of seconds. This is caused by converting hMetrics to list at line 13 of com.sysalto.render.util.fonts.parsers.otf.Hmtx.scala; list in scala is a linked list, but it is being accessed by index inside a loop at line 57 of com.sysalto.render.util.fonts.parsers.otf.OtfFontParser.scala, which is O(n^2). Removing .toList would fix the issue.
Large Unicode fonts might be parsed tens of seconds. This is caused by converting hMetrics to list at line 13 of com.sysalto.render.util.fonts.parsers.otf.Hmtx.scala; list in scala is a linked list, but it is being accessed by index inside a loop at line 57 of com.sysalto.render.util.fonts.parsers.otf.OtfFontParser.scala, which is O(n^2). Removing .toList would fix the issue.