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.


On Thursday, January 14, 2016 at 11:46:11 PM UTC+1, Philipp Schrader wrote:
> 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 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 things, but they would 
>> require you to use the C++ implementation anyway, and they would make you 
>> more dependent on the internals of the Python/C++ library.

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, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to