node-shared-cache
node-shared-cache copied to clipboard
What is "c-binary serialization"?
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?
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.