simplify dist by merging sql-asm-memory-growth.js into sql-asm.js#431
simplify dist by merging sql-asm-memory-growth.js into sql-asm.js#431kaizhu256 wants to merge 3 commits intosql-js:masterfrom
Conversation
Co-authored-by: Yan Li <yanli0303@outlook.com> Co-authored-by: kai zhu <kaizhu256@gmail.com>
|
What is the performance impact ? |
|
good question. the following benchmark indicates asm2 is 1-6% slower running queries on a 60mb database: you can emulate above result in following steps:
copy all tables in 60mb databasefts-query with joins |
|
also the difference in size is < 1%: |
|
If we want to be able to merge this without breaking backwards compatibility, we can first add On the next major version bump, we can delete the memory growth version. |
…includes memory-growth and ie11 support.
…ow essentially a copy of sql-asm.js
|
latest-patch removes redundant npm-tests on this simplifies sunsetting --- a/Makefile
+++ b/Makefile
@@ -101,9 +101,6 @@ dist/sql-wasm.js: $(BITCODE_FILES) $(OUTPUT_WRAPPER_FILES) $(SOURCE_API_FILES) $
mv $@ out/tmp-raw.js
cat src/shell-pre.js out/tmp-raw.js src/shell-post.js > $@
rm out/tmp-raw.js
- # TODO - remove code below in future releases to sunset sql-asm-memory-growth.js
- printf 'console.error(\n "\\n\\nDEPRECATION WARNING.\\n"\n + "sql-asm-memory-growth.js will be removed in future releases.\\n"\n + "Use sql-asm.js instead, which now includes memory-growth support.\\n\\n"\n);\n' > dist/sql-asm-memory-growth.js
- cat $@ >> dist/sql-asm-memory-growth.js
# Web worker API
.PHONY: workerif you still want npm-tests on |



Co-authored-by: Yan Li yanli0303@outlook.com
Co-authored-by: kai zhu kaizhu256@gmail.com
this implements suggestion #239 (comment)
removed or edited all references to memory-growth using command
git grep -i 'memory.*growth'