Re: [protobuf] C++ json decoding is too slow in 3.1.0

2016-10-29 Thread Sanchay H
https://github.com/google/protobuf/issues/2305 I don't think it is a swap issue. The process takes 1.45GB and remains there. My system has memory left. Plus there is constant 100% CPU usage. On Saturday, October 29, 2016 at 5:41:53 PM UTC-7, Feng Xiao wrote: > > On Sat, Oct 29, 2016 at 12:57 PM,

Re: [protobuf] C++ json decoding is too slow in 3.1.0

2016-10-29 Thread 'Feng Xiao' via Protocol Buffers
On Sat, Oct 29, 2016 at 12:57 PM, Sanchay H wrote: > We have a fairly big protobuf (~37MB). Here is the breakup of times: > > Serializing proto to binary std::string ~= 110ms > Serializing proto to json std::string ~= 4200ms (size ~ 115MB) > > > Parsing from binary std::string ~= 7

[protobuf] C++ json decoding is too slow in 3.1.0

2016-10-29 Thread Sanchay H
We have a fairly big protobuf (~37MB). Here is the breakup of times: Serializing proto to binary std::string ~= 110ms Serializing proto to json std::string ~= 4200ms (size ~ 115MB) Parsing from binary std::string ~= 700ms Parsing from json std::string ~= 35 mins