Skip to content

[api-minor] Remove the CMapCompressionType enumeration#18951

Merged
timvandermeij merged 2 commits intomozilla:masterfrom
Snuffleupagus:CMap-isCompressed
Oct 27, 2024
Merged

[api-minor] Remove the CMapCompressionType enumeration#18951
timvandermeij merged 2 commits intomozilla:masterfrom
Snuffleupagus:CMap-isCompressed

Conversation

@Snuffleupagus
Copy link
Copy Markdown
Collaborator

@Snuffleupagus Snuffleupagus commented Oct 24, 2024

  • Unconditionally cache built-in CMaps on the worker-thread

    Given that we've not shipped, nor used, anything except binary CMaps for years let's just cache them unconditionally (since that's a tiny bit less code).

  • [api-minor] Remove the CMapCompressionType enumeration

    After the binary CMap format had been added there were also some ideas about maybe providing other formats, see here, however that was over seven years ago and we still only use binary CMaps.
    Hence it now seems reasonable to simplify the relevant code by removing CMapCompressionType and instead just use a boolean to indicate the type of the built-in CMaps.

Given that we've not shipped, nor used, anything except binary CMaps for years let's just cache them unconditionally (since that's a tiny bit less code).
After the binary CMap format had been added there were also some ideas about *maybe* providing other formats, see [here](mozilla#8064 (comment)), however that was over seven years ago and we still only use binary CMaps.
Hence it now seems reasonable to simplify the relevant code by removing `CMapCompressionType` and instead just use a boolean to indicate the type of the built-in CMaps.
@Snuffleupagus
Copy link
Copy Markdown
Collaborator Author

/botio test

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

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/c730453cc33efa2/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/6f6a6f8eaaa92bd/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Failed

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

Total script time: 32.04 mins

  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 17
  different ref/snapshot: 14
  different first/second rendering: 2

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

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/6f6a6f8eaaa92bd/output.txt

Total script time: 51.39 mins

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

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

@timvandermeij timvandermeij merged commit 5418060 into mozilla:master Oct 27, 2024
@timvandermeij
Copy link
Copy Markdown
Contributor

Thank you for simplifying this!

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.

3 participants