4 ms·
This does nothing that important. I do detest annotation soup, but what would be more useful is to simply generate a competent rest service and client from the
by social_ism 3y ago
This does nothing that important. I do detest annotation soup, but what would be more useful is to simply generate a competent rest service and client from the openai spec. There is nothing performant or magical about using Java here.
In fact the comments on performance are pretty dumb. The JIT compiler is the only source of performance in the jvm and you will never make a performance optimization that beats the JIT
- moring 3y agoThanks for your feedback. My experience with code generation from an OpenAPI spec wasn't that great, to be honest. The comments about performance are based on earlier experience with a similar scenario in which code generation _did_ improve performance. Mostly in that the generated code was "de-convoluted" to such an extent that the JIT could actually do its work. I'm expecting a similar thing here, especially with JSON serialization/deserialization, because of the heavy amount of reflection involved: The generated code would then no longer use reflection, but access fields and methods directly, and can therefore be optimized by the JIT.
- exp-prohibited 3y ago[dead]