-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store list of local mods with updates on VueX
For a profile with 109 mods and 40 updateable mods, calling DownloadProvider's getLatestOfAllToUpdate takes a second or two. - When entering local mod list, it gets called twice: once to show the banner about available updates, and once by DownloadModModal - While in settings view once per second due to setInterval in SettingsItem (that might also be something to look into) - Ridiculous number of times when the mods were updated via DownloadModModal. The update time for the example profile went from 315 seconds to 65 seconds (all downloads were cached both times) Calling the method in VueX getter caches the value for subsequent calls, reducing the duration to milliseconds.
- Loading branch information
Showing
4 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters