Skip to content

Optimize transformers#50

Open
danyadev wants to merge 2 commits into
FalsePattern:masterfrom
danyadev:optimize-transformers
Open

Optimize transformers#50
danyadev wants to merge 2 commits into
FalsePattern:masterfrom
danyadev:optimize-transformers

Conversation

@danyadev
Copy link
Copy Markdown

Transformers from this mod take up roughly 25% (or 1500ms) of overall transformation time on GTNH client load

This PR doesn't eliminate the main bottleneck in GTNH, because there are two problematic parts: in the lib and in EndlessIDs, and without fixing both we won't gain any benefit. Though it should make any other modpack without EndlessIDs faster already

Code for the first commit was taken from GTNewHorizons/RetroFuturaBootstrap/pull/6
Code for the second commit was taken from GTNewHorizons/RetroFuturaBootstrap/pull/20

Here are the Before and After profiles, showing three transformers before (two of which were in the lib and were optimized in this pr) and only one transformer after (from EndlessIDs)

image image

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