Skip to content
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

Performance Enhancements #1229

Merged
merged 6 commits into from Jul 20, 2015
Merged

Performance Enhancements #1229

merged 6 commits into from Jul 20, 2015

Conversation

Postremus
Copy link
Contributor

Profiling was started before clicking on Refresh, and stopped after.

Before my changes:
ss 2015-07-10 at 11 42 35

After my changes:
ss 2015-07-10 at 11 38 26

@Postremus Postremus changed the title Performance fixes for Registry.Available(..) Performance Enhancements Jul 8, 2015
@Postremus Postremus changed the title Performance Enhancements [WIP] Performance Enhancements Jul 10, 2015
@Postremus Postremus changed the title [WIP] Performance Enhancements Performance Enhancements Jul 10, 2015
@pjf
Copy link
Member

pjf commented Jul 16, 2015

puu.sh seems to be having troubles right now, and I'd love to see the performance graphs! :)

@Postremus
Copy link
Contributor Author

Sorry for them not being available. uploaded them to github.

@@ -72,7 +72,6 @@ private void UpdateRepo(object sender, DoWorkEventArgs e)
private void PostUpdateRepo(object sender, RunWorkerCompletedEventArgs e)
{
SetDescription("Scanning for manually installed mods");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this line also be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I see the reason :)

We only need to know if any mod provides the specified mod,
not which mods provides it.
this improves the launch time a bit
the call is already done before the refresh,
and we don't need to do it twice
this removes unneeded calls to Availablemodule.Latest(..)
@Postremus
Copy link
Contributor Author

rebased the pr.

Postremus referenced this pull request Jul 18, 2015
Another call is made post repo update
RichardLake added a commit that referenced this pull request Jul 20, 2015
@RichardLake RichardLake merged commit f9cb27b into KSP-CKAN:master Jul 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants