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

perf: omit unnecessary work from ElectronRenderFrameObserver::ShouldNotifyClient() #41381

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Feb 20, 2024

Backport of #41347

See that PR for details.

Notes: none.

…otifyClient()

- (perf) GetBlinkPreferences() returns a const&, so we can use that
  reference instead of making a temporary copy

- (perf) Don't create url object unless it's needed.

- (refactor) Move is_main_world() and is_isolated_world() from the
  header into an anonymous namespace in the .cc file so they can
  be inlined and made constexpr

Co-authored-by: Charles Kerr <charles@charleskerr.com>
@trop trop bot requested a review from ckerr February 20, 2024 12:29
@trop trop bot added 29-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Feb 20, 2024
@jkleinsc jkleinsc merged commit ffcccdc into 29-x-y Feb 22, 2024
20 checks passed
@jkleinsc jkleinsc deleted the trop/29-x-y-bp-perf-omit-unnecessary-work-from-electronrenderframeobserver-shouldnotifyclient--1708432162003 branch February 22, 2024 16:51
Copy link

release-clerk bot commented Feb 22, 2024

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
29-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants