Skip to content
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

[Java] JIT serializer for object graph serialization #235

Closed
6 tasks done
chaokunyang opened this issue May 15, 2023 · 0 comments
Closed
6 tasks done

[Java] JIT serializer for object graph serialization #235

chaokunyang opened this issue May 15, 2023 · 0 comments
Labels
enhancement New feature or request java

Comments

@chaokunyang
Copy link
Collaborator

chaokunyang commented May 15, 2023

Is your feature request related to a problem? Please describe.

We've implemented feature-complete serialization for object graph, but it's interpreter mode, which will incur:

  • extra memory access for query serializer
  • extra memory access for query classinfo
  • extra memory access for query field offset
  • virtual method invocation.
  • conditional branching.
  • hash lookup.

Since class has field has types, we can use those type information to generate serializer on the flight to speed the serialization, reduce above cost.

Describe the solution you'd like

Use #28 to create serializer on the flight to speedup the serialization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java
Projects
None yet
Development

No branches or pull requests

1 participant