christkv/node-mongodb-native — pull request #452 by aheckmann (2011-12-17 14:22:34+00:00)
Title: ObjectId toHexString cache

in js running ObjectId.toHexString 100000 times went from 490ms to 4ms.

no changes to c++ yet. i don't think its needed since it appears that the string is stored internally as hex already? the loop in c++ already runs in 18ms