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

Modify class reader flags in class transformer #124

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

Su5eD
Copy link
Member

@Su5eD Su5eD commented Apr 16, 2024

Changes the flags used to read ClassNodes in ClassTransformer from 0 to ClassReader.EXPAND_FRAMES. This ensures the correctness of local variable analysis, while also achieving parity with Fabric's flag usage (which is currently the inverse of modlauncher's settings).

For a complete description of the issue, please see neoforged/NeoForge#768

@Su5eD Su5eD requested a review from marchermans April 17, 2024 19:32
@shartte
Copy link
Contributor

shartte commented Apr 24, 2024

The docs says:

(this option adds a decompression/compression step in ClassReader and ClassWriter which degrades performance quite a lot).

How much is "a lot".

Copy link
Member

@marchermans marchermans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand why it is needed. But is this not a breaking change?

@Su5eD
Copy link
Member Author

Su5eD commented Apr 24, 2024

It is breaking, yeah. We'll need to make sure to bump mixin alongside modlauncher next time we do so.

@marchermans marchermans merged commit f1f25dc into McModLauncher:main Apr 25, 2024
34 checks passed
marchermans added a commit that referenced this pull request Apr 25, 2024
marchermans pushed a commit that referenced this pull request Apr 25, 2024
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.

3 participants