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

Clean-up the data that we're sending with "GetDocRequest" #15555

Merged
merged 3 commits into from
Oct 9, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

Please refer to the individual commit messages for additional details.

It seems that this property became *effectively* unused already in PR 8617, however we missed removing it as part of the clean-up in PR 10376.
…Request"

Rather than sending all of these parameters individually and then grouping them together on the worker-thread, we can simply handle that in the API instead.
Looking at the code on the worker-thread, there doesn't appear to be any particular reason for placing *some* of the properties in a `source`-object when sending them with "GetDocRequest".
As is often the case the explanation for this structure is rather "for historical reasons", since originally we simply sent the `source`-object as-is. Doing that was obviously a bad idea, for a couple of reasons:
 - It makes it less clear what is/isn't actually needed on the worker-thread.
 - Sending unused properties will unnecessarily increase memory usage.
 - The `source`-object may contain unclonable data, which would break the library.
@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2022

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 1

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2022

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2022

From: Bot.io (Linux m4)


Failed

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

Total script time: 25.45 mins

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

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

@pdfjsbot
Copy link

pdfjsbot commented Oct 9, 2022

From: Bot.io (Windows)


Failed

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

Total script time: 29.86 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/c1378f063e241fd/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit dff444d into mozilla:master Oct 9, 2022
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the improve-GetDocRequest branch October 10, 2022 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants