NODE-3024Backlog

src(objectid): cleanup and simplification, perf improvement

GitHub PR: https://github.com/mongodb/js-bson/pull/338 I have another PR prepared that trivially speeds up the {{equals}} method a ton, but wanted to clean the surrounding code up first. ---- * Since Node.js v6.9.0 is the minimum version, {{Buffer.from}} is always available. Allows removing {{decodeLookup}} stuff, poor duck-typing of 'id' ({{this.id.copy}} was used as a test for it being a buffer). * Indicate that 12-byte string is allowed as constructor arg. * Simplify logic in construct

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
BSONPerformance
Labels
Tags and classification
node-internal