-
-
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
Slow Cold Start Times #5382
Comments
My hunch is that the major slow down occurs (for the login flow) from the use of this recreateVaultWithNewPassword function which we are calling from Login. There are a few other cases through out the app where we perform very similar logic. In my testing of Auth refactor I noticed this method being slow. More investigation is needed though. |
When a user puts a device in battery saver mode it the application running slow. |
@Cal-L Attach PR to ticket. Patch the controllers and open a PR for the patch. |
<!-- Thanks for your contribution! Please ensure that any applicable requirements below are satisfied before submitting this pull request. This will help ensure a quick and efficient review cycle. --> **Improve lookup time in PhishingController** This PR creates a Set from `metamaskConfig.blocklist` in the `PhishingController`. The blocklist Set is later used as a lookup inside of a filter method. As a result, look up performance is significantly improved by using a `Set` + `has` method instead of `includes` method from an Array. **Description** _Itemize the changes you have made into the categories below_ - CHANGED: - `PhishingController.updatePhishingLists` - Create a `Set` from `metamaskConfig.blocklist` to be used as lookup. **Checklist** - [x] Tests are included if applicable - [x] Any added code is fully documented **Issue** Resolves MetaMask/metamask-mobile#5382
<!-- Thanks for your contribution! Please ensure that any applicable requirements below are satisfied before submitting this pull request. This will help ensure a quick and efficient review cycle. --> **Improve lookup time in PhishingController** This PR creates a Set from `metamaskConfig.blocklist` in the `PhishingController`. The blocklist Set is later used as a lookup inside of a filter method. As a result, look up performance is significantly improved by using a `Set` + `has` method instead of `includes` method from an Array. **Description** _Itemize the changes you have made into the categories below_ - CHANGED: - `PhishingController.updatePhishingLists` - Create a `Set` from `metamaskConfig.blocklist` to be used as lookup. **Checklist** - [x] Tests are included if applicable - [x] Any added code is fully documented **Issue** Resolves MetaMask/metamask-mobile#5382
<!-- Thanks for your contribution! Please ensure that any applicable requirements below are satisfied before submitting this pull request. This will help ensure a quick and efficient review cycle. --> **Improve lookup time in PhishingController** This PR creates a Set from `metamaskConfig.blocklist` in the `PhishingController`. The blocklist Set is later used as a lookup inside of a filter method. As a result, look up performance is significantly improved by using a `Set` + `has` method instead of `includes` method from an Array. **Description** _Itemize the changes you have made into the categories below_ - CHANGED: - `PhishingController.updatePhishingLists` - Create a `Set` from `metamaskConfig.blocklist` to be used as lookup. **Checklist** - [x] Tests are included if applicable - [x] Any added code is fully documented **Issue** Resolves MetaMask/metamask-mobile#5382
Description
The users have been reporting slow start up times in the iOS and Android mobile app. Between the initial bouncing diamond to the fox head animation. 10+ seconds.
Technical Requirements
app/components/Nav/App/index.js
callsAuthentication.appTriggeredAuth
, a method that lives inAuthentication.ts
appTriggeredAuth
is where the business logic takes a long time to processSecureKeychain.getGenericPassword
is the first culpritloginVaultCreation
is another when it callsrecreateVaultWithSamePassword
The text was updated successfully, but these errors were encountered: