I am writing my own node module for a database in a process that has zero copies of data. I would like my module to also have this ability. In other words, when I get data from a database, I would like to transfer data to V8 without the need to copy memory or the need to parse something.
How can i do this?
So far, all the ways I've seen included either disassembling between JSON (pretty much empty resources in this case), or instantiating V8 data structures and copying the data into them.
NOTE. In case you are interested, a null instance of a data search means (in a nutshell) that the database engine does not need to copy memory when retrieving data.
source share