Change Thrift to lazily instantiate $_TSPEC objects on first object instantiation
authorMark Slee <mcslee@apache.org>
Wed, 14 Nov 2007 00:24:14 +0000 (00:24 +0000)
committerMark Slee <mcslee@apache.org>
Wed, 14 Nov 2007 00:24:14 +0000 (00:24 +0000)
commit89d52079834a20411d2b842d2e71a4e3390911a9
treee304560e5d6e9a1166ef0ac310687759066da20a
parent465ccc09240b16f5790dfc5c5e7579c42ec54770
Change Thrift to lazily instantiate $_TSPEC objects on first object instantiation

Summary: Apparently adding the static array costs overhead since it must get preinitialized or something? It's unclear exactly what's going on here, but let's test to see if explicit lazy instantiation helps here.

Reviewed By: dreiss

Test Plan: See if this speeds up falcon loading

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665334 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_php_generator.cc