minor: fixes for benchmarks and byte buffer defaults

This commit is contained in:
Kyle Banker 2009-11-16 10:40:16 -05:00
parent 572bf10110
commit 039484c263
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
#!/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.
# 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'
include Mongo

View File

@ -21,7 +21,7 @@ class ByteBuffer
def initialize(initial_data=[])
@buf = initial_data
@cursor = 0
@cursor = @buf.length
@order = :little_endian
@int_pack_order = 'V'
@double_pack_order = 'E'