[protobuf] Re: Faster way to convert C++ protobuf into a Python protobuf?

2016-01-15 Thread Emmanuel Decitre
Hi Philipp, I am exposing the generated C++ classes to my Python code through cython. It works pretty well, and I could use the CodedInputStream and GzipInputStream classes too. For this you have to develop a couple of .pyx and .pxd files around the generated .cpp code. Cheers Emmanuel On Thu

[protobuf] Re: Faster way to convert C++ protobuf into a Python protobuf?

2016-01-14 Thread Philipp Schrader
Hi Josh, Thanks for the reply. I was worried someone would say as much :) Also, I am indeed using the C++ implementation. I'm very happy that this is possible! Thanks Phil On Tuesday, January 12, 2016 at 2:42:07 PM UTC-8, Josh Haberman wrote: > > Hi Phil, > > If you are not doing so already, I

[protobuf] Re: Faster way to convert C++ protobuf into a Python protobuf?

2016-01-12 Thread Josh Haberman
Hi Phil, If you are not doing so already, I would highly recommend using the C++ implementation for Python (instead of the pure-Python one). It will make ParseFromString() in Python much, much faster, which might give you the speed boost you need. There are possible ways of doing more clever t