tursodatabase / libsql-js

A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consider moving the deserialization code from the main thread to the workers

zen0wu opened this issue · comments

in here, https://github.com/tursodatabase/libsql-js/blob/1df5a35989c93ba9000a7facdf6dd726d73c702f/src/statement.rs, we're blocking the JS main thread for deserializing the native values, ideally we could make it happen on worker threads to free some cycles from the JS thread to do something else.