Skip to content

Instantly share code, notes, and snippets.

@sc1f
Last active July 11, 2020 04:19
Show Gist options
  • Save sc1f/a7f9e286f25721608aef4f3603ea0150 to your computer and use it in GitHub Desktop.
Save sc1f/a7f9e286f25721608aef4f3603ea0150 to your computer and use it in GitHub Desktop.
const worker = perspective.worker();
worker._detect_transferable = () => {
worker._worker.transferable = false;
return false;
};
worker._detect_transferable();
const table = worker.table({
a: [1, 2, 3, 4]
});
const arrow = await table.view().to_arrow();
for (let i = 0; i < 10; i++) {
table.update(arrow);
}
console.log(await table.size());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment