OLD | NEW |
1 Protocol Buffers - Google's data interchange format | 1 Protocol Buffers - Google's data interchange format |
2 =================================================== | 2 =================================================== |
3 | 3 |
4 [](https
://travis-ci.org/google/protobuf) | 4 [](https
://travis-ci.org/google/protobuf) |
5 | 5 |
6 Copyright 2008 Google Inc. | 6 Copyright 2008 Google Inc. |
7 | 7 |
8 This directory contains the Python Protocol Buffers runtime library. | 8 This directory contains the Python Protocol Buffers runtime library. |
9 | 9 |
10 Normally, this directory comes as part of the protobuf package, available | 10 Normally, this directory comes as part of the protobuf package, available |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 web at: | 116 web at: |
117 | 117 |
118 https://developers.google.com/protocol-buffers/ | 118 https://developers.google.com/protocol-buffers/ |
119 | 119 |
120 C++ Implementation | 120 C++ Implementation |
121 ================== | 121 ================== |
122 | 122 |
123 The C++ implementation for Python messages is built as a Python extension to | 123 The C++ implementation for Python messages is built as a Python extension to |
124 improve the overall protobuf Python performance. | 124 improve the overall protobuf Python performance. |
125 | 125 |
126 To use the C++ implementation, you need to: | 126 To use the C++ implementation, you need to install the C++ protobuf runtime |
127 1) Install the C++ protobuf runtime library, please see instructions in the | 127 library, please see instructions in the parent directory. |
128 parent directory. | |
129 2) Export an environment variable: | |
130 | |
131 $ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp | |
132 | |
133 You must set this variable at runtime, before running your program, otherwise | |
134 the pure-Python implementation will be used. In a future release, we will | |
135 change the default so that C++ implementation is used whenever it is available. | |
OLD | NEW |