Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: third_party/protobuf/python/README.txt

Issue 6737030: third_party/protobuf: update to upstream r371 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/protobuf/protobuf.gyp ('k') | third_party/protobuf/python/ez_setup.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/protobuf/python/README.txt
diff --git a/third_party/protobuf/python/README.txt b/third_party/protobuf/python/README.txt
index 96f1a734c1e10b2fd6d8d20ad0bec7ef86e25e0a..73a2656610c59cb24390a4c3c9ced29f83a0b9fb 100644
--- a/third_party/protobuf/python/README.txt
+++ b/third_party/protobuf/python/README.txt
@@ -63,6 +63,9 @@ Installation
$ python setup.py install
This step may require superuser privileges.
+ NOTE: To use C++ implementation, you need to export the environment variable
+ before this step. See the "C++ Implementation" section below for more
+ details.
Usage
=====
@@ -71,3 +74,24 @@ The complete documentation for Protocol Buffers is available via the
web at:
http://code.google.com/apis/protocolbuffers/
+
+C++ Implementation
+==================
+
+WARNING: This is EXPERIMENTAL and only available for CPython platforms.
+
+The C++ implementation for Python messages is built as a Python extension to
+improve the overall protobuf Python performance.
+
+To use the C++ implementation, export an environment variable:
+
+ $ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
+
+You need to export this variable before running setup.py script to build and
+install the extension. You must also set the variable at runtime, otherwise
+the pure-Python implementation will be used. In a future release, we will
+change the default so that C++ implementation is used whenever it is available.
+It is strongly recommended to run `python setup.py test` after setting the
+variable to "cpp", so the tests will be against C++ implemented Python
+messages.
+
« no previous file with comments | « third_party/protobuf/protobuf.gyp ('k') | third_party/protobuf/python/ez_setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698