3 ms·
Honestly, I'm more surprised that a WebAssembly version of SQLite isn't more commonly used.
by da_chicken 8y ago
Honestly, I'm more surprised that a WebAssembly version of SQLite isn't more commonly used.
- untog 8y agoIt would be huge, wouldn't it?
- tracker1 8y agoLooks like it's around 2.6mb for the not gzipped worker compiled to JS... so would presume it'd be a bit less for wasm, then gzipped to around 800k. https://hackernoon.com/execute-millions-of-sql-statements-in-milliseconds-in-the-browser-with-webassembly-and-web-workers-3e0b25c3f1a6 https://hackernoon.com/execute-millions-of-sql-statements-in...
- TheTaytay 8y agoI'm actually in the midst of converting SQL.js to use WASM primarily instead of asm.js (https://github.com/kripken/sql.js/pull/255 https://github.com/kripken/sql.js/pull/255). By disabling some less-known features and optimizing for size, the WASM build is currently 631KB. When compressed (zip), they are a total of 270KB. https://github.com/Taytay/sql.js/pull/1 https://github.com/Taytay/sql.js/pull/1
- tracker1 8y agovery cool.. much smaller than I'd expected... still as big as the entire application I'm currently working on ;-) I still wish WebSQL just had broader support in general.