You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Since GraalVM's native image is becoming popular, the industry is making a push to move more AOT style applications where frameworks figure out as much as they can ahead of time and cache the results for runtime.
In Yasson, we lazily parse class models, which is a very expensive operation. This only needs to be done once, but it could be further improved by doing this parsing ahead of time.
Describe the solution you'd like
Add an SPI hook that receives a number of Class<?> arguments indicating which ClassModels should be parsed upon creation of the Jsonb instance.
Describe alternatives you've considered
One of my colleagues in Quarkus did a POC that involved generating serializers in order to significantly improve performance. We will see how much parsing classes AOT can help, since it would be a lot less code to maintain if we simply parsed classes ahead of time.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Since GraalVM's native image is becoming popular, the industry is making a push to move more AOT style applications where frameworks figure out as much as they can ahead of time and cache the results for runtime.
In Yasson, we lazily parse class models, which is a very expensive operation. This only needs to be done once, but it could be further improved by doing this parsing ahead of time.
Describe the solution you'd like
Add an SPI hook that receives a number of
Class<?>
arguments indicating whichClassModel
s should be parsed upon creation of theJsonb
instance.For example:
Describe alternatives you've considered
One of my colleagues in Quarkus did a POC that involved generating serializers in order to significantly improve performance. We will see how much parsing classes AOT can help, since it would be a lot less code to maintain if we simply parsed classes ahead of time.
The text was updated successfully, but these errors were encountered: