marcello3d/node-buffalo — Issue #5: Don't use buffer.slice() for ObjectIds and Binary values
Author: marcello3d
Created: 2012-02-01 02:41:41+00:00
State: open

See: https://github.com/marcello3d/node-mongolian/issues/83

Currently we're using slice() which shares memory with the original buffer. Although perhaps more performant, this is error prone. It will cause bugs if the original buffer is reused (and if it isn't, could lead to unnecessary memory usage).