You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AfterRange function currently calls Nan::CopyBuffer which creates a copy of the entire protobuf string before passing the back to JS.
We can optimize this by using the signature of Nan::NewBuffer that will take ownership of the string rather than copying it, to allow zero-copy passing of data from C++ to JS.
The
AfterRange
function currently callsNan::CopyBuffer
which creates a copy of the entire protobuf string before passing the back to JS.We can optimize this by using the signature of
Nan::NewBuffer
that will take ownership of the string rather than copying it, to allow zero-copy passing of data from C++ to JS.This method can be described at mapbox/node-cpp-skel#69
The text was updated successfully, but these errors were encountered: