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

[api-minor] Initialize the unicode-category *lazily* on the Glyph-instance #15665

Merged
merged 1 commit into from
Nov 5, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

The purpose of this patch is twofold:

  • Initialize the unicode-category data lazily during text-extraction, since this is completely unused during general parsing/rendering.
  • Stop exposing this data in the API, since it's unused on the main-thread and it seems like it was accidentally included.

Obviously these changes are API-observable, but hopefully no user is depending on this. Furthermore, it's trivial for a user to re-create this unicode-category data manually with a regular expression (from the exposed unicode property).

…nstance

The purpose of this patch is twofold:
 - Initialize the unicode-category data *lazily* during text-extraction, since this is completely unused during general parsing/rendering.
 - Stop exposing this data in the API, since it's unused on the main-thread and it seems like it was *accidentally* included.

Obviously these changes are API-observable, but hopefully no user is depending on this. Furthermore, it's trivial for a user to re-create this unicode-category data manually with a regular expression (from the exposed `unicode` property).
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Nov 5, 2022

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/fcd46c58a2cba11/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 5, 2022

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/f832062df222d2c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Nov 5, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/fcd46c58a2cba11/output.txt

Total script time: 25.13 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 7
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/fcd46c58a2cba11/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Nov 5, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/f832062df222d2c/output.txt

Total script time: 30.62 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 2

Image differences available at: http://54.193.163.58:8877/f832062df222d2c/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

/cc @calixteman since looking at the history of this file you added these fields; were they indeed exposed accidentally?

@calixteman
Copy link
Contributor

Yep I exposed them accidentally.

@Snuffleupagus Snuffleupagus merged commit 7e5008f into mozilla:master Nov 5, 2022
@Snuffleupagus Snuffleupagus deleted the Glyph-category branch November 5, 2022 14:27
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants