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 some tweaks to improve transformation time #16

Closed
wants to merge 1 commit into from

Conversation

ichttt
Copy link
Member

@ichttt ichttt commented Feb 19, 2019

Add some additional checks so the classwriter is not used if possible, as classwriting with computing frames can take some time, and avoiding creating a new arraylist if no transformers are present.
Nearly cuts the time spend on transforming classes in half with some changes to forge to return a null ClassNode when nothing is transformed (About 1.5 seconds total to 2.8 spend on ClassTransformer#transform).

@cpw
Copy link
Member

cpw commented Feb 22, 2019

Sadly, I disagree with how this is implemented. I get your feedback, and I'll definitely look at ways to improve the transformation time.

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