Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up expected_font_names #4765

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Speed up expected_font_names #4765

merged 1 commit into from
Jun 13, 2024

Conversation

simoncozens
Copy link
Collaborator

Description

In expected_font_names we do a deep copy of the font because we're going to modify it and we don't want to mess up further tests. But for big fonts this is very slow, and we use expected_font_names a few times. We don't need glyf and gvar and GPOS and everything else to work out what names the font should have. Instead, let's only copy the tables that we need to run build_name_table.

Checklist

  • update CHANGELOG.md
  • wait for the tests to pass
  • request a review

felipesanches pushed a commit that referenced this pull request Jun 13, 2024
In expected_font_names we do a deep copy of the font because we're going to modify it
and we don't want to mess up further tests. But for big fonts this is very slow, and
we use expected_font_names a few times. We don't need glyf and gvar and GPOS and
everything else to work out what names the font should have. Instead, let's only copy
the tables that we need to run build_name_table.

(PR #4765)
In expected_font_names we do a deep copy of the font because we're going to modify it
and we don't want to mess up further tests. But for big fonts this is very slow, and
we use expected_font_names a few times. We don't need glyf and gvar and GPOS and
everything else to work out what names the font should have. Instead, let's only copy
the tables that we need to run build_name_table.

(PR #4765)
@felipesanches felipesanches merged commit ecd82b3 into main Jun 13, 2024
81 checks passed
@felipesanches felipesanches added this to the 0.12.8 milestone Jun 13, 2024
@khaledhosny khaledhosny deleted the expected-name-speedup branch June 25, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants