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

Add item load coroutine to improve startup time #6635

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

Lancej
Copy link
Contributor

@Lancej Lancej commented Sep 10, 2023

Improves startup time by about 1030 ms.

Moved item loading to coroutine. Item DB controls show "Loading..." until items are loaded. If ModCache is being generated then items are loaded without a coroutine so they load before cache saves.

Also added new pairsYield utility function.

Steps taken to verify a working solution:

  • Item DB shows items after load completes, filtering and sorting works
  • Tested ModCache generation

After screenshot:

image

@LocalIdentity LocalIdentity added the enhancement New feature, calculation, or mod label Sep 10, 2023
@LocalIdentity LocalIdentity merged commit 6765125 into PathOfBuildingCommunity:dev Sep 10, 2023
shafouz pushed a commit to shafouz/PathOfBuilding that referenced this pull request Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, calculation, or mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants