Skip to content

Conversation

@wenytang-ms
Copy link
Contributor

@wenytang-ms wenytang-ms commented Sep 18, 2025

Testing against some popular java repo
jbang
Mixin
Velocity
java deps cost - execute java command time cost
pack cost - execute context provider to collect and return context whole time cost

file url java-deps cost pack cost
Configuration.java 9.82 ms 13 ms 7 items
PathTypeAdapter.java 4.36ms 15ms 0 items
VersionChecker.java 4.6ms 13ms 3 items
RuntimeDecompiler.java 20ms 25ms 4 items
ModLauncherClassTracker.java 7.74ms 19ms 3items
CookieReceiveEvent.java 4.5ms 8ms 6 items
ResultEvent.java 5.2 ms 12 ms 0 items

@wenytang-ms wenytang-ms marked this pull request as ready for review September 19, 2025 00:57
chagong
chagong previously approved these changes Sep 19, 2025
chagong
chagong previously approved these changes Sep 26, 2025
@chagong
Copy link
Contributor

chagong commented Sep 26, 2025

LGTM based on the test result you pasted.

testforstephen
testforstephen previously approved these changes Sep 26, 2025
Copy link
Contributor

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

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

This is a good start to enable the exp first.

There are more cases to cover for the import, we can optimize them later. for example, In Java, all classes in the same package can access each other by default without explicit imports. Also can support the method with package visible or protected modifier.

@wenytang-ms
Copy link
Contributor Author

Thanks @testforstephen for your suggestion, will update the logic for better user experiment.

This PR will be merged after the stable release of the Java mod change.

@wenytang-ms wenytang-ms dismissed stale reviews from testforstephen and chagong via 6baf10b September 27, 2025 13:49
@wenytang-ms wenytang-ms merged commit eb89297 into main Sep 28, 2025
4 of 6 checks passed
@wenytang-ms wenytang-ms deleted the wenyt/contextproviderapi branch September 28, 2025 01:22
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.

4 participants