Thrift PHP generation Redux
authorMark Slee <mcslee@apache.org>
Tue, 13 Nov 2007 04:00:29 +0000 (04:00 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 13 Nov 2007 04:00:29 +0000 (04:00 +0000)
commit5b743079da3b0f817545d7e0574222a5c16fc2a9
tree16e0768d3a13702182643c7e00d1c4909132de81
parentc0c88ee8056427f66451e527f791b31f7485b4ca
Thrift PHP generation Redux

Summary: Chopping the amount of code generated by Thrift for PHP services by two orders of magnitude (approx 25% of the previous size). This is done via putting more logic in a dynamic base class and taking it out of the generated code. Hopefully this wins back the CPU cycles paid just to load code from APC at the cost of a marginal increase in dynamic execution runtime.

Reviewed By: sgrimm, dreiss

Test Plan: Ran all the tests in trunk/test/php, also tested the API generate code and Falcon, etc. in my sandbox

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665328 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_php_generator.cc
compiler/cpp/src/generate/t_php_generator.h
compiler/cpp/src/main.cc
compiler/cpp/src/parse/t_base_type.h
compiler/cpp/src/parse/t_type.h
lib/php/src/Thrift.php
test/php/Makefile
test/php/TestClient.php