-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Simplify nbb-related check #3466
Comments
Hi @benjamin-asdf! I noticed this issue and that you gracefully added nbb support to CIDER. I wonder if you could check it out? Perhaps it's easy if If so, we could only run the check when the runtime is 'babashka - that would probably zap 90% of the problem. Cheers - V |
...while we're there, |
Nice find @vemv See pull request. Turns out we can rely on the describe op (runtime..) instead and shave of those 1-2 seconds for jvm startup! This is a 36% improvement on my end! |
Background
I noticed some time ago that even a
cider-connect
(which should be very fast) was a touch slower than usual.Diagnostic
I found out that this piece of code:
cider/cider-connection.el
Lines 356 to 360 in 09d7219
Adds 2 seconds to the
cider--connected-handler
sequence.(Those 2s will only be reproducible on a 'cold' JVM - subsequent calls will be faster. However please note that basically all JVMs are cold when you first start them)
Task
Run the check only when it's relevant.
I reckon it might be tricky since it might not be clear in advance whether we're looking at a nbb connection.
The text was updated successfully, but these errors were encountered: