mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
move compute to the main thread for browser and node
- now, most of the work is happening on the main thread - for database in browser, we still have dedicated WebWorker - but it is used only for OPFS access and only for that - for syn in browser we still offload sync operations to the WebWorker
This commit is contained in:
@@ -7,7 +7,7 @@ let napiModule = {
|
||||
Opfs: {} as any,
|
||||
OpfsFile: {} as any,
|
||||
Statement: {} as any,
|
||||
connect: {} as any,
|
||||
connectDbAsync: {} as any,
|
||||
initThreadPool: {} as any,
|
||||
}
|
||||
};
|
||||
@@ -37,5 +37,5 @@ export const Database = napiModule.exports.Database
|
||||
export const Opfs = napiModule.exports.Opfs
|
||||
export const OpfsFile = napiModule.exports.OpfsFile
|
||||
export const Statement = napiModule.exports.Statement
|
||||
export const connect = napiModule.exports.connect
|
||||
export const connectDbAsync = napiModule.exports.connectDbAsync
|
||||
export const initThreadPool = napiModule.exports.initThreadPool
|
||||
|
||||
Reference in New Issue
Block a user