/[Apache-SVN]
ViewVC logotype

Revision 665224


Jump to revision: Previous Next
Author: dreiss
Date: Sat Aug 25 18:01:30 2007 UTC (17 years, 2 months ago)
Changed paths: 9
Log Message:
Thrift: Native-code Binary Protocol encoder.

Summary:
Merging a patch from Ben Maurer.
This adds a python extension (i.e., a C module) that
encodes Python thrift structs into the standard binary protocol
much faster than our generated Python code.

Also added by-value equality comparison to thrift structs
(to help with testing).

Cleaned up some trailing whitespace too.

Reviewed By: mcslee, dreiss

Test Plan:
Recompiled Thrift.
Thrifted a bunch of IDLs and compared the generated Python output.
Looked at the extension module a lot.
test/FastBinaryTest.py

Revert Plan: ok


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.h modified , text changed
Directoryincubator/thrift/trunk/lib/py/setup.py modified , text changed
Directoryincubator/thrift/trunk/lib/py/src/protocol/TBinaryProtocol.py modified , text changed
Directoryincubator/thrift/trunk/lib/py/src/protocol/__init__.py modified , text changed
Directoryincubator/thrift/trunk/lib/py/src/protocol/fastbinary.c added
Directoryincubator/thrift/trunk/lib/py/src/transport/TTransport.py modified , text changed
Directoryincubator/thrift/trunk/test/DebugProtoTest.thrift modified , text changed
Directoryincubator/thrift/trunk/test/FastbinaryTest.py added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26