Commit Graph

6 Commits

Author SHA1 Message Date
Hongli Lai (Phusion)
c8726ca150 Optimize MongoDB::Cursor#construct_query_message. 2010-09-13 10:51:15 -04:00
Hongli Lai (Phusion)
bde53f1e20 Optimize ByteBuffer: use binary string as underlying storage instead of array. 2010-09-13 10:51:02 -04:00
Hongli Lai (Phusion)
1c25541492 Optimize ByteBuffer#get_int. 2010-09-13 10:50:04 -04:00
Hongli Lai (Phusion)
b9de2eaa5c When possible, have BSON::ByteBuffer store the underlying binary data as a binary String instead of an array.
This dramatically improves the performance of BSON::ByteBuffer.new(a_string).
On Ruby 1.9.2 it is about 130 times faster.
2010-09-09 15:59:17 -04:00
Kyle Banker
97ee66be02 minor: source file encoding with magic comment 2010-05-07 15:33:27 -04:00
Kyle Banker
8426a06244 minor: some minor details 2010-04-05 14:09:06 -04:00