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

Create ScreenShotWriter thread only when necessary #1644

Merged

Conversation

jellefoks
Copy link
Member

@jellefoks jellefoks commented Sep 26, 2023

This delays creating the ScreenShotWriter until the first time a
ScreenShot is requested.

b/302358421

@jellefoks jellefoks force-pushed the screenshot_thread_only_when_necessary branch from 5f2027b to 9ca30cd Compare September 27, 2023 17:05
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #1644 (af5a145) into main (eb36d7c) will decrease coverage by 0.03%.
Report is 2 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1644      +/-   ##
==========================================
- Coverage   57.58%   57.55%   -0.03%     
==========================================
  Files        1907     1907              
  Lines       94776    94776              
==========================================
- Hits        54573    54553      -20     
- Misses      40203    40223      +20     

see 6 files with indirect coverage changes

@jellefoks jellefoks force-pushed the screenshot_thread_only_when_necessary branch 2 times, most recently from 03b2800 to 86f56b6 Compare September 27, 2023 21:13
Copy link
Contributor

@sherryzy sherryzy left a comment

Choose a reason for hiding this comment

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

Overall the change looks good. Thanks for doing these performance improvements!

cobalt/webdriver/testdata/simple_test.py Outdated Show resolved Hide resolved
cobalt/webdriver/testdata/simple_test.py Outdated Show resolved Hide resolved
This delays creating the ScreenShotWriter until the first time a
ScreenShot is requested.
@jellefoks jellefoks force-pushed the screenshot_thread_only_when_necessary branch from 86f56b6 to af5a145 Compare September 28, 2023 19:14
@jellefoks jellefoks merged commit e77a231 into youtube:main Oct 3, 2023
403 of 404 checks passed
@jellefoks jellefoks added the cp-24.lts.1+ Cherry Pick to the 24.lts.1+ branch label Oct 3, 2023
cobalt-github-releaser-bot pushed a commit that referenced this pull request Oct 3, 2023
This delays creating the ScreenShotWriter until the first time a
ScreenShot is requested.

b/302358421

(cherry picked from commit e77a231)
jellefoks added a commit that referenced this pull request Oct 4, 2023
…ary (#1712)

Refer to the original PR: #1644

This delays creating the ScreenShotWriter until the first time a
ScreenShot is requested.

b/302358421

Co-authored-by: Jelle Foks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cp-24.lts.1+ Cherry Pick to the 24.lts.1+ branch on_device
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants