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

Most upvoted comments

Hi @X-czh , I added protobuf serializer in https://github.com/apache/fury/pull/2213