Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Drastically improve loading time of updates panel - #887

Merged
winstliu merged 1 commit into
masterfrom
wl-updates-ux
Dec 8, 2016
Merged

winstliu merged 1 commit into
masterfrom
wl-updates-ux

Conversation

@winstliu

@winstliu winstliu commented Dec 8, 2016 •

Copy link
Copy Markdown
Contributor

getInstalled() doesn't affect getOutdated() and was just slowing the process down if we had cached data from getOutdated().

Here's two GIFs, the first one before the change and the second one after. Pretty big difference :). Sorry for the extra non-Atom stuff in the background. Had to resize the Atom window but forgot to resize licecap.
Before:
wl-updates-panel-before

After:
wl-updates-panel-after

Fixes #409, closes atom/atom#6945.
Though this doesn't do anything about the case when you click the updates tile a sufficiently long time after Atom loads, causing Atom to check for updates again since the outdated cache expired. I think that's fine though.

/cc @caged

getInstalled() doesn't affect getOutdated and was just slowing the
process down if we had cached data from getOutdated.
@simurai

simurai commented Dec 8, 2016

Copy link
Copy Markdown
Contributor

Wow.. that looks so much faster! 🏇 👏

@caged

caged commented Dec 8, 2016

Copy link
Copy Markdown

Niiiiice. 👏

@winstliu

winstliu commented Dec 8, 2016

Copy link
Copy Markdown
Contributor Author

Merging. I don't think a spec needs to be added for this (what would it even test?).

@winstliu
winstliu merged commit 719ff0b into master Dec 8, 2016
@winstliu
winstliu deleted the wl-updates-ux branch December 8, 2016 18:27
@eboracus

eboracus commented Dec 8, 2016

Copy link
Copy Markdown

Will this effect the delay on loading the cards in the packages tab aswell? Does that use the same getInstalled()?

@winstliu

winstliu commented Dec 8, 2016

Copy link
Copy Markdown
Contributor Author

No. This only affects the updates panel. I plan on taking a look at that soon though! I noticed we're caching the packages, but then not using it in most cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Towards unobtrusive notices and notifications Clicking the 'package updates available' icon searches again for package updates

4 participants