Skip to content

Perform modpack type detection as needed#5768

Open
Keksilton wants to merge 1 commit into
MultiMC:developfrom
Keksilton:import-do-less
Open

Perform modpack type detection as needed#5768
Keksilton wants to merge 1 commit into
MultiMC:developfrom
Keksilton:import-do-less

Conversation

@Keksilton
Copy link
Copy Markdown

Hi,

I have encountered a performance issue with import performance of a large modpack exported with MultiMC.

1.1 GiB (1,149,869,013)
7,492 files, 1,411 sub-folders

Profiling pointed me to findFolderOfFileInZip method.

Currently all classifications are performed regardless if they are needed based on the priority logic.
With this change specific modpack classifications are performed as needed. This limits the number of calls to findFolderOfFileInZip during zip import.

For my case and hardware it brings the import time down from 36 seconds to 2 seconds.

While this code change is far from a perfect solution, I believe it's a step in the right direction.
I'm not a C++ developer, so I'm not sure what would be a good way to speed up zip traversal in this context.

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.

1 participant