[protobuf] Add serialization method right to Builder (Java)?

2016-09-09 Thread Nickolay Mazurkin
I'm working on legacy project that has some beans with up to 300 fields. The problem is that serialization of such beans (to byte array for example) takes more than 50 microseconds that is too much as I can get no more than 2 msg/sec in this case. I've found that writeTo() method is fast an

[protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread Nickolay Mazurkin
I've created a test: https://github.com/mazurkin/protobuf-test This is a monster bean: https://github.com/mazurkin/protobuf-test/blob/master/src/main/config/proto/BeanProto.proto This is a test: https://github.com/mazurkin/protobuf-test/blob/master/src/test/java/org/test/ProtoTest.java Result

Re: [protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread Nickolay Mazurkin
> Can you help create a github issue to track it? > > Currently protobuf generated code size is already a problem for large > binaries. Adding this Builder.writeTo() method will require another > generated serialization method and that probably won't going to happen > until we solve the code

Re: [protobuf] Re: Add serialization method right to Builder (Java)?

2016-09-12 Thread Nickolay Mazurkin
https://github.com/google/protobuf/issues/2108 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group,