-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[IMPROVEMENT] Use Set when filtering blocklist #5641
[IMPROVEMENT] Use Set when filtering blocklist #5641
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Test Scenarios:
Expected: mobile app usage is not negatively impacted |
Issue #1: Browser: opensea.io: tapping MetaMask icon on connect wallet takes you download MetaMask page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review issues.
Issue 2: Uniswap: Swaps: UI components for token rate on swap screen are not loading NOTE: This currently exist in prod but sites/dapps that are not loading UI fully may be contributing to slowness. This is not a Uniswap specific issue but this issue is using Uniswap as a specific example. |
Regarding Issue 1 I cannot reproduce it on a physical device: http://recordit.co/qzgkprczPr Maybe opensea was having a connectivity issue earlier in the day. Regarding issue 2, This seems dapp specific. Uniswap has Skelton loaders that appear for swap prices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
label when dev review is completedQA Passed
label when QA has signed offDescription
This PR patches the
PhishingController
to useSet
when filtering on the blocklist. The improvement here (at least testing locally on iOS) is that look up inSet
vs usingincludes
while filtering reduces same business logic processing time by 4x. This translates to a user experiencing 4x faster cold start times than before.Issue
Progresses #5382
Test
We should expect cold start times on iOS to be ~4seconds, while Android (depending on device) shouldn't take more than 10 seconds. (Both times reported by Curtis). Relative to the previous app version, the cold start up times should be noticeably lower.