minor: fixes for benchmarks and byte buffer defaults
This commit is contained in:
parent
572bf10110
commit
039484c263
|
@ -1,8 +1,11 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
#$LOAD_PATH[0,0] = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
#
|
#
|
||||||
# Note: Ruby 1.9 is faster than 1.8, as expected.
|
# Note: Ruby 1.9 is faster than 1.8, as expected.
|
||||||
|
# This suite will be run again the installed version of ruby-mongo-driver.
|
||||||
|
# The c-extension, mongo_ext, will be used if installed.
|
||||||
|
|
||||||
$LOAD_PATH[0,0] = File.join(File.dirname(__FILE__), '..', 'lib')
|
require 'rubygems'
|
||||||
require 'mongo'
|
require 'mongo'
|
||||||
|
|
||||||
include Mongo
|
include Mongo
|
||||||
|
|
|
@ -21,7 +21,7 @@ class ByteBuffer
|
||||||
|
|
||||||
def initialize(initial_data=[])
|
def initialize(initial_data=[])
|
||||||
@buf = initial_data
|
@buf = initial_data
|
||||||
@cursor = 0
|
@cursor = @buf.length
|
||||||
@order = :little_endian
|
@order = :little_endian
|
||||||
@int_pack_order = 'V'
|
@int_pack_order = 'V'
|
||||||
@double_pack_order = 'E'
|
@double_pack_order = 'E'
|
||||||
|
|
Loading…
Reference in New Issue