Skip to content

Add recipe for google protobuf cpp implementation#987

Merged
inclement merged 2 commits intokivy:masterfrom
bakwc:master
Jan 19, 2017
Merged

Add recipe for google protobuf cpp implementation#987
inclement merged 2 commits intokivy:masterfrom
bakwc:master

Conversation

@bakwc
Copy link
Contributor

@bakwc bakwc commented Jan 18, 2017

Protobuf with c++ implementation is much faster than native-python (10-60 times). Here is a recipe for building protobuf c++ extension. So instead of adding protobuf requirement, add protobuf_cpp one.
To ensure that you are using cpp implementation you can add folowing before importing protobuf:

import os
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp'

It will raise exception if cpp implementation is not available.

@inclement
Copy link
Member

Looks good, thanks!

@inclement inclement merged commit 9af9f06 into kivy:master Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants