-
Notifications
You must be signed in to change notification settings - Fork 200
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
[WHY?] JBR JDK 21 is sooooo slow compared to super fast JBR JDK 17 #422
Comments
It was already reported by @Kademlia The fix is in the jbr21 branch and will be, hopefully, included in the next jbr21 release. Regarding the slowness of JBR21, this could occur because class loaders are checked for new classes iteratively now. This process might be more noticeable in applications with a lot of classes (tens/hundreds of thousands of classes). |
@copyandexecute, just in case, which exactly build and which exactly link did you use to get the JBR 21 build? |
@skybber Thanks a lot for the fast reply, good to know <3 this issue can be closed |
@copyandexecute Increasing the CacheSizes will make hotswapping slower in general. Using the default should be faster than providing the increased values. Going lower might even improve the speed while debugging (for example -XX:-SegmentedCodeCache -XX:ReservedCodeCacheSize=96m) . |
Hi, I'm coding minecraft mods with fabric and I loved jbr 17 class hotswapping it was so fast and I've never head any problem, but since minecraft 1.21 requires java 21 I had to switch... After hotswapping like 5 times I get this error:
After Adding these argument, it got a little bit better but not that good as with 17
Whats the reason for this and how can I fix it?
The text was updated successfully, but these errors were encountered: