Summary: | Optimize family name matching in sort and match functions | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Karl Tomlinson <bugs.freedesktop> |
Component: | library | Assignee: | fontconfig-bugs |
Status: | RESOLVED MOVED | QA Contact: | Behdad Esfahbod <freedesktop> |
Severity: | enhancement | ||
Priority: | high | CC: | akira, freedesktop |
Version: | 2_1 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Karl Tomlinson
2009-01-03 00:07:27 UTC
What I had in mind was sorting both the fontset and the pattern family list and walk them together, giving a m+n algorithm. The problem with both approaches is that, I think, some fonts can have multiple family names. That's a pain... Maybe initially I just create a hash table and stuff all the fonts into it. (In reply to comment #1) > The problem with both approaches is that, I think, some fonts can have multiple > family names. That's a pain... Multiple family names makes sorting the fonts inconvenient, but putting only the families from the match pattern into a hash table enables an algorithm of p + n complexity. Because p is only of moderate size and so log p is small, a sort of (only) the match pattern families may well function at least as efficiently as hash lookups. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/34. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.