Skip to content

Use fewer hasFieldFlag calls in the src/core/annotation.js file #19393

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

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

We lookup a number of field-flags multiple times, which seems unnecessary.

We lookup a number of field-flags multiple times, which seems unnecessary.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/66a00cdc81a833e/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

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

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

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

Total script time: 2.36 mins

  • Unit Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/66a00cdc81a833e/output.txt

Total script time: 7.50 mins

  • Unit Tests: Passed

@Snuffleupagus
Copy link
Collaborator Author

/botio browsertest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/604f8714c95601d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/5e3b1fb1c87989d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/5e3b1fb1c87989d/output.txt

Total script time: 16.89 mins

  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/604f8714c95601d/output.txt

Total script time: 30.08 mins

  • Regression tests: Passed

@calixteman
Copy link
Contributor

Out of curiosity, did you check that every flag we read is used when rendering the annotation (of course if there's an html/css counterpart like the password one we missed) ?

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@Snuffleupagus
Copy link
Collaborator Author

Out of curiosity, did you check that every flag we read is used when rendering the annotation (of course if there's an html/css counterpart like the password one we missed) ?

I've just checked, and it appears that everything is actually being used now.

@Snuffleupagus Snuffleupagus merged commit 31deee2 into mozilla:master Jan 30, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the fewer-hasFieldFlag branch January 30, 2025 14:10
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