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] geneate serializer for meta shared serialization #239

Closed
Tracked by #235
chaokunyang opened this issue May 15, 2023 · 0 comments · Fixed by #255
Closed
Tracked by #235

[Java] geneate serializer for meta shared serialization #239

chaokunyang opened this issue May 15, 2023 · 0 comments · Fixed by #255
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.

In #80 we implemented meta shared serialization, but the implementation is based on inpterpreter mode, which has extra cost.

Describe the solution you'd like

Implement a jit acceleted serializer builder to create jit serializer on the fly.

The meta-shared compatible deserializer builder will be based on ClassDef. the builder will compare fields between ClassDef and class fields, then create serializer to read and set/skip corresponding fields to support type forward/backward compatibility.

With meta context share enabled and compatible mode, the ObjectCodecBuilder will take all non-inner final types as non-final, so that fury can write class definition when write class info for those types

Serializer are forward to ObjectCodecBuilder for now. We can consolidate fields between peers to create better serializers to serialize common fields between peers for efficiency.

Additional context

@chaokunyang chaokunyang added enhancement New feature or request java labels May 15, 2023
@chaokunyang chaokunyang reopened this May 16, 2023
@chaokunyang chaokunyang changed the title geneate serializer for meta shared serialization [Java] geneate serializer for meta shared serialization May 16, 2023
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

Successfully merging a pull request may close this issue.

1 participant