Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 20, 2010
  1. @banker

    BUMP 1.0.9

    banker authored
  2. @banker
  3. @banker

    minor: credits

    banker authored
  4. @banker

    minor: fast_pack no longer used

    banker authored
  5. @banker
  6. @banker
Commits on Sep 14, 2010
  1. @banker
  2. @FooBarWidget @banker

    Optimize ObjectId#generate: cache the MD5 of the host name and genera…

    FooBarWidget authored banker committed
    …te counters in C instead of Ruby.
  3. @FooBarWidget @banker

    Optimize Mongo::Connection#receive_message_on_socket and #receive_and…

    FooBarWidget authored banker committed
    …_discard_message_on_socket: avoid creating initial input buffer up front so that IO#read only needs to allocate the buffer once.
  4. @FooBarWidget @banker

    Optimize Mongo::Connection#send_message_on_socket: don't slice the in…

    FooBarWidget authored banker committed
    …put when not necessary.
  5. @FooBarWidget @banker

    Optimize Mongo::Connection#add_message_headers by packing data direct…

    FooBarWidget authored banker committed
    …ly instead of using ByteBuffer.
Commits on Sep 13, 2010
  1. @banker

    minor: comment cleanup

    banker authored
  2. @banker

    minor: test fix getlasterror

    banker authored
  3. @FooBarWidget @banker

    Fix MongoDB::Collection #insert_documents, #update and #remove and Mo…

    FooBarWidget authored banker committed
    …ngoDB::Connection #receive_header and #last_error_message: usage strings as much as possible instead of byte arrays, otherwise performance really suffers.
  4. @FooBarWidget @banker

    Fix reference to NULL_BYTE.

    FooBarWidget authored banker committed
  5. @FooBarWidget @banker

    Optimize BSON C extension: cache some symbols instead of interning th…

    FooBarWidget authored banker committed
    …em over and over.
  6. @FooBarWidget @banker

    Optimize MongoDB::Cursor#construct_query_message.

    FooBarWidget authored banker committed
  7. @FooBarWidget @banker

    Optimize ByteBuffer: use binary string as underlying storage instead …

    FooBarWidget authored banker committed
    …of array.
  8. @FooBarWidget @banker

    Improve ByteBuffer unit tests.

    FooBarWidget authored banker committed
  9. @FooBarWidget @banker

    Optimize MongoDB::Connection#receive_response_header by using raw str…

    FooBarWidget authored banker committed
    …ing operations and unpack() instead of the slower ByteBuffer.
  10. @FooBarWidget @banker

    Optimize MongoDB::Connection#receive.

    FooBarWidget authored banker committed
    It doesn't do anything with the header. So instead of parsing the header,
    just read the header data and discard it.
  11. @FooBarWidget @banker

    Optimize Mongo::Connection#read_documents by using raw string operati…

    FooBarWidget authored banker committed
    …ons and unpack() instead of the slower ByteBuffer.
  12. @FooBarWidget @banker

    Optimize ByteBuffer#get_int.

    FooBarWidget authored banker committed
  13. @FooBarWidget @banker

    Optimize Ruby 1.8 implementation of BSON::OrderedHash.

    FooBarWidget authored banker committed
    The set in there is unnecessary. Use the hash itself as "set". This makes
    BSON::OrderedHash 148% faster on Ruby 1.8.
  14. @FooBarWidget @banker

    Optimize receive_message_on_socket for the optimistic average case wh…

    FooBarWidget authored banker committed
    …ere 1 socket.read() operation receives all requested data. Also fix some Ruby 1.9 encoding issues in that function while we're at it.
  15. @FooBarWidget @banker
Commits on Sep 12, 2010
  1. @mislav @banker

    replace usage of `returning` with `each_with_object`

    mislav authored banker committed
    `each_with_object` is a Ruby 1.9 method, here re-implemented in core_ext.rb
    in case it's missing (for older Ruby versions). Using `returning` is bad in
    combination with Ruby on Rails because each usage of the method will emit
    a Rails deprecation warning. This might be considered an Active Support bug,
    but it's better to avoid using `returning` altogether and use `tap` from
    Ruby 1.8.7, also re-implemented here in case it's missing.
    
    Since existing usages or `returning` were better suited for `each_with_object`
    than `tap`, they were rewritten using the former instead.
Commits on Sep 9, 2010
  1. @FooBarWidget @banker

    When possible, have BSON::ByteBuffer store the underlying binary data…

    FooBarWidget authored banker committed
    … 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.
  2. @banker
  3. @banker

    RUBY-180 fixed failing test

    banker authored
  4. @banker
  5. @banker

    minor: typo fix

    banker authored
  6. @banker

    RUBY-180 Fix batch size

    banker authored
Commits on Sep 8, 2010
  1. @banker
  2. @banker

    Create logging message only when a logger is passed to the Connection.

    banker authored
    Results in a pretty significant performance improvement.
    
    Many thanks to Matt Taylor for noticing the unusual glut of calls
    to ObjectId#to_s. See here: http://unhalting.com/?p=18
Something went wrong with that request. Please try again.