Andy Grundman's Thrift-XS is a drop-in replacement for Thrift module.
Thrift::XS provides faster versions of Thrift::BinaryProtocol and Thrift::MemoryBuffer.
Thrift compact protocol support is also available, just replace Thrift::XS::BinaryProtocol with Thrift::XS::CompactProtocol.
To use, simply replace your Thrift initialization code with the appropriate Thrift::XS version.
Andy Grundman's Thrift-XS is a drop-in replacement for Thrift module.
Thrift::XS provides faster versions of Thrift::BinaryProtocol and Thrift::MemoryBuffer. Thrift compact protocol support is also available, just replace Thrift::XS::BinaryProtocol with Thrift::XS::CompactProtocol. To use, simply replace your Thrift initialization code with the appropriate Thrift::XS version.
Check please http://search.cpan.org/~agrundma/Thrift-XS-1.04/ or https://github.com/andygrundman/thrift-xs Could do something similar with JSON module and allow the developer to specify with backend or load XS and fallback to PurePerl
Benchmarks shows significant improvment
XS::MemoryBuffer write + read: 6x faster