node-shared-cache icon indicating copy to clipboard operation
node-shared-cache copied to clipboard

What is "c-binary serialization"?

Open gajus opened this issue 9 years ago • 1 comments

Documentation gives this example of "c-binary serialization":

console.time('binary serialization');
for(var i = 0; i < 100000; i++) {
    obj.test = input;
}
console.timeEnd('binary serialization');

This is just assigning a value to the same object property. How is the data persisted?

gajus avatar Aug 26 '16 12:08 gajus

when exec obj.test = ttttt the addon will forward the call to the setter in c/c++ which will call bson to do the s/ns job.

mgttt avatar Jun 10 '17 03:06 mgttt