-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
move semantics for the buffer inside mapnik.VectorTile #881
Comments
I've decided not to move ahead with this. I was assuming that the buffer type stored on the node-mapnik object and would be easy to change into a |
Took a shot at this with #889 and mapbox/mapnik-vector-tile#285 |
Released in |
The
getData()
call copies the entire, uncompressed, vector tile buffer. This can be expensive.We should add support for a
takeData()
orrelease()
function which returns a node.Buffer which owns the underlying memory (the originalmapnik.VectorTile
object would then be empty).This will allow for much more efficient passing of data to other node C++ addons like https://github.com/mapbox/vtcomposite and https://github.com/mapbox/vtquery.
/cc @mapbox/core-tech @flippmoke
refs mapbox/node-cpp-skel#69 and mapbox/node-cpp-skel#67
The text was updated successfully, but these errors were encountered: