-
Notifications
You must be signed in to change notification settings - Fork 3k
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: use force while importing polyfill to avoid calling shouldPolyfill which adds overhead #47071
perf: use force while importing polyfill to avoid calling shouldPolyfill which adds overhead #47071
Conversation
…ill which adds overhead
@ishpaul777 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeRecord_2024-08-09-16-03-51.mp4Android: mWeb ChromeChanges specific to ios and android iOS: NativeScreen.Recording.2024-08-09.at.4.06.51.PM.moviOS: mWeb SafariChanges specific to ios and android MacOS: Chrome / SafariChanges specific to ios and android MacOS: DesktopChanges specific to ios and android |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #47140 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
FYI I'm planning to wait on reviewing this just till we get confirmation in slack that we want this :D |
@Beamanator makes sense. Have you already asked for this OR do you want me to share this with the folks on slack? |
Thanks very much @hurali97 🙏 and sorry for the delay and I have not shared this in slack, please feel free 👍 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.0.20-0 🚀
|
@Beamanator Anything specific to QA here? |
@hurali97 can you help with test steps? |
@Beamanator I am not sure about the test steps but I tested the PR to verify that the date is appearing correctly for report actions. Maybe we can do that 👍 |
FYI I believe this was deployed to prod yesterday, from this checklist - #47356 |
Details
To further reduce the App Startup, we can leverage
-force
to tellformatjs
that we require polyfill on this platform. As a result of which it should avoid validating this itself resulting in reduced time consumption while polyfilling.Below are the results for iOS
Before:
After:
Previously, we had ~246ms being spent while polyfilling but after this change we have ~181ms, so there's ~70ms reduction.
Below are the results for Android
Before:
After:
Previously, we had ~15ms being spent while polyfilling but after this change there's no entry of polyfilling, probably because it's so small to measure.
Fixed Issues
$ #47140
$ #47305
PROPOSAL:
Tests
Steps:
Not so sure about the steps but we can try validating the date appears correctly
Verify that no errors appear in the JS console
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-08-09.at.1.23.46.PM.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-08-09.at.1.58.21.PM.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop