apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
2.99k stars 219 forks source link

[Java] JIT support for custom data object xlang serialization #867

Open chaokunyang opened 1 year ago

chaokunyang commented 1 year ago

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

Fury optimizes pojo serialization by jit for pure java mode, see https://github.com/apache/incubator-fury/blob/main/java/fury-core/src/main/java/org/apache/fury/builder/ObjectCodecBuilder.java

But for xlang serializaiton, fury still use interpreter mode, see https://github.com/apache/incubator-fury/blob/main/java/fury-core/src/main/java/org/apache/fury/serializer/StructSerializer.java , we shoudl do similar optimization for xlang

Describe the solution you'd like

Add jit support for xlang serialization in java.

zzzk1 commented 8 months ago

Hello, I would like to start with this issues and participate in the project.

chaokunyang commented 8 months ago

Hi @zzzk1 ,

Thank you for your interest in contributing to the project! To get started, you can take org.apache.fury.builder.ObjectCodecBuilder as an example for how to generate code in fury java. Please let me know if you need more information.

Looking forward to your contributions!

heliang666s commented 5 months ago

hello,I am new in there,This issue does not seem to be resolved,I will try it,please assign me,thanks~

chaokunyang commented 5 months ago

hello,I am new in there,This issue does not seem to be resolved,I will try it,please assign me,thanks~

Great!

heliang666s commented 5 months ago

I have no idea now,Could you offer me with more details about the resolution?@chaokunyang

StevenCurran commented 5 months ago

I have no idea now,Could you offer me with more details about the resolution?@chaokunyang

If you have no idea how to solve it, why are you asking for the issue to be assigned to you....

miracle485 commented 4 months ago

hello, I see that the linked class has been removed. Has this issue been resolved?

chaokunyang commented 4 months ago

Nope, this issue is still not resolved. It should be more clear that how to implement this feature than before, since our xlang serialization protocol has been formulized: https://fury.apache.org/docs/specification/fury_xlang_serialization_spec/

chaokunyang commented 4 months ago

I have no idea now,Could you offer me with more details about the resolution?@chaokunyang

Hi @heliang666s , are you still working on this? The protocol details can be found in https://fury.apache.org/docs/specification/fury_xlang_serialization_spec/

heliang666s commented 4 months ago

ok,I will solve it.@chaokunyang