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

Optimize EDEngineer #715

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

Mc-Pain
Copy link

@Mc-Pain Mc-Pain commented Dec 11, 2022

ED Engineer operates very slow, especially on large shopping lists.

There are some bottlenecks and excessive operations when updating UI or importing/clearing shopping lists.

For example:
Multiple calling this.ToList(), which calculates a new object while we can store it somewhere if it's unchanged.
Updating UI or saving settings when importing or clearing shopping list (both are time expensive)

[source branch was renamed]

@Mc-Pain
Copy link
Author

Mc-Pain commented Dec 12, 2022

@msarilar There are some benchmarks:

Tried to apply a shopping list with every blueprint included 10 times with commit f1ec43c -- after 30 minutes application freezes (no GC happens, I heavily suspect OutOfMemoryException)

Given my optimizations, import took ~20 seconds if you had almost empty shopping list before and choose to clean it.

@msarilar
Copy link
Owner

msarilar commented Dec 12, 2022 via email

@Mc-Pain
Copy link
Author

Mc-Pain commented Dec 12, 2022

This should be resolved ASAP - that's why I took the attempt to optimize.

#646

@Mc-Pain
Copy link
Author

Mc-Pain commented Dec 20, 2022

ping?

@Mc-Pain
Copy link
Author

Mc-Pain commented Jan 12, 2023

@msarilar maybe your help is needed to optimize increment/decrement shopping list.

What happens exactly when user/EDEvent changes shopping list?
Profiler data led me that hottest path contains system code. I suspect heavily messing with events subsystem or unoptimal XAML handling

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.

2 participants