Hello,
I wonder if someone could possibly help me clear some doubts I have 
regarding the python code generation.

I'm working on an embedded system and I've found the "standard" 
implementation to be too slow for my system and I eventually read that you 
can set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp at runtime to switch to 
a c++ implementation.
I've also read it's possible to have python use a custom module with your 
own PB compiled in to further enhance the performance.

My doubts are:
1) Are those features related? I mean, do I need to set 
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp 
also for making my custom python extension module?
2) Where do exactly I have to specify the 
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION 
variable? Perhaps when running the setup.py script included in the protobuf 
package? Does this works when cross-compiling too?
3) Regarding the custom module, It's unclear to me what I need to do 
exactly. I usually cross-compile my own python c++ extensions invoking my 
cross-g++ with -lPython2.7 -shared options, however I don't understand what 
protobuf expects to find and where.

Thank you in advance for your help.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to