So I have prototyped the same application in both Kotlin and Java
(https://github.com/GavinRay97/GraphQLCalcite)
For some reason, the Kotlin version is significantly slower than the Java implementation
It's a latency sensitive application, in Kotlin the query execution pipeline takes about ~24ms for a depth-2, basic query
In Java, it's closer to 13ms. Are there any big no-no's to keep in mind? I've tried to even stay to using
I'll run Async Profiler and dig through JFR recording then I suppose
r
Richard Gomez
02/14/2022, 6:39 PM
Interesting — is there a specific class or function between the two where that was happening? I'm just curious.
g
Gavin Ray
02/14/2022, 7:02 PM
Ah no it was entirely user fault, there was a minute difference in the business logic implementation in one method that led to an object being cached 😅
r
Richard Gomez
02/14/2022, 7:08 PM
Ah, well I'm glad you were able to figure it out. I think you were asking the right questions — even if it didn't end up being some strange compilation or bytecode discrepancy. 🙂