mongodb/mongo-ruby-driver — pull request #151 by cgriego (2013-01-21 23:54:00+00:00)
Title: Optimize BSON::ObjectId.from_string and BSON::ObjectID.legal? via C ext

Our application ends up calling ObjectId.from_string a lot and the Ruby method is rather inefficient. The C extension is an order of magnitude faster.