Permalink
Browse files

Use the accelerated thrift binary protocol, if available

This speeds up Nearbuy's workload by almost 25%
  • Loading branch information...
1 parent eeccfb6 commit fade7c2cd6d4b7c5da60f549b6978f9ca41ae10e @natemueller natemueller committed Jul 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/cassandra/cassandra.rb
@@ -64,6 +64,8 @@ module Consistency
:thrift_client_class => ThriftClient
}
+ THRIFT_DEFAULTS[:protocol] = Thrift::BinaryProtocolAccelerated if Thrift.const_defined?(:BinaryProtocolAccelerated)
+
attr_reader :keyspace, :servers, :schema, :thrift_client_options, :thrift_client_class, :auth_request
def self.DEFAULT_TRANSPORT_WRAPPER

0 comments on commit fade7c2

Please sign in to comment.