Skip to content

Improve the Ref.prototype.toString method a tiny bit#21618

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:Ref-str
Jul 23, 2026
Merged

Improve the Ref.prototype.toString method a tiny bit#21618
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:Ref-str

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

When getting/creating a new Ref instance, via the static Ref.get method, we already need to compute a cache-key.
Since this key is identical to the format used by the toString method, we can avoid having to re-create that string (a lot) by simply providing it to the Ref constructor.

When getting/creating a new `Ref` instance, via the static `Ref.get` method, we already need to compute a cache-key.
Since this key is identical to the format used by the `toString` method, we can avoid having to re-create that string (a lot) by also providing it to the `Ref` constructor.
@Snuffleupagus

Copy link
Copy Markdown
Collaborator Author

/botio browsertest

@moz-tools-bot

Copy link
Copy Markdown
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/285b8495f965bf9/output.txt

@moz-tools-bot

Copy link
Copy Markdown
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/047576fc3114198/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/285b8495f965bf9/output.txt

Total script time: 18.11 mins

  • Regression tests: Passed

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/047576fc3114198/output.txt

Total script time: 23.07 mins

  • Regression tests: Passed

@timvandermeij timvandermeij left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good idea; thank you!

@timvandermeij
timvandermeij merged commit 890f2ad into mozilla:master Jul 23, 2026
20 of 21 checks passed
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