Skip to content

Compile sql.js with the right options #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lovasoa opened this issue Nov 19, 2014 · 1 comment
Open

Compile sql.js with the right options #75

lovasoa opened this issue Nov 19, 2014 · 1 comment
Assignees

Comments

@lovasoa
Copy link
Member

lovasoa commented Nov 19, 2014

Not all SQLite functionalities are used in sql.js. We should compile it with the right options, in order to provide a smaller sql.js file at the end.

@lovasoa lovasoa self-assigned this Nov 19, 2014
@lovasoa
Copy link
Member Author

lovasoa commented Nov 19, 2014

Progress:

Size of sql.js, in bytes

All the results are cumulative. The size indicated on the nth line is the one of sql.js compiled with all the nth first compile flags.

Compile flag size Notes
NONE 1 605 772
-DSQLITE_OMIT_ATTACH 1 601 928
-DSQLITE_OMIT_BUILTIN_TEST 1 600 197
-DSQLITE_OMIT_DEPRECATED 1 599 530
-DSQLITE_OMIT_WAL 1 535 226 tests fail
-DSQLITE_OMIT_EXPLAIN 1 512 027
-DSQLITE_OMIT_UTF16 1 502 866
-DSQLITE_OMIT_AUTHORIZATION 1 495 415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant