fory: [Question] For the Java PB object generated by Protobuf, the serialization and deserialization using Fury are slower than using Protobuf.
GrpcService.ModelInferRequest` resp = GrpcService.ModelInferRequest
.newBuilder()
.addAllInputs(inputs)
.build();
byte[] data = fury.serializeJavaObject(resp);
fury.deserializeJavaObject(data, GrpcService.ModelInferRequest.class);
byte[] data = resp.toByteArray();
GrpcService.ModelInferRequest.parseFrom(data);
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (1 by maintainers)
Commits related to this issue
- feat(java): add protobuf serializer for message and byte string (#2213) ## What does this PR do? add protobuf serializer for message and byte string ## Related issues #1945 ## Does this PR intro... — committed to apache/fory by chaokunyang 2 years ago
- feat(java): add protobuf serializer for message and byte string (#2213) ## What does this PR do? add protobuf serializer for message and byte string ## Related issues #1945 ## Does this PR intro... — committed to chaokunyang/fury by chaokunyang 2 years ago
- feat(java): add protobuf serializer for message and byte string (#2213) ## What does this PR do? add protobuf serializer for message and byte string ## Related issues #1945 ## Does this PR intro... — committed to apache/fory by chaokunyang 2 years ago
Hi @X-czh , I added protobuf serializer in https://github.com/apache/fury/pull/2213