Skip to content

Optimize transformers#50

Merged
FalsePattern merged 2 commits into
FalsePattern:masterfrom
danyadev:optimize-transformers
May 25, 2026
Merged

Optimize transformers#50
FalsePattern merged 2 commits into
FalsePattern:masterfrom
danyadev:optimize-transformers

Conversation

@danyadev
Copy link
Copy Markdown
Contributor

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

@FalsePattern FalsePattern merged commit 3582a26 into FalsePattern:master May 25, 2026
1 check passed
@danyadev danyadev deleted the optimize-transformers branch May 26, 2026 05:56
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