Hi

Here are a few remarks and questions about
SQLITE_OMIT_LOOKASIDE and
SQLITE_OMIT_TWOSIZE_LOOKASIDE:

1) SQLite has SQLITE_OMIT_LOOKASIDE to
disable lookaside memory completely at compilation time.
However, I see that some of the lookaside code
is not disabled by SQLITE_OMIT_LOOKASIDE.

For example, the struct sqlite3 contains this field:

Lookaside lookaside;          /* Lookaside malloc configuration */

... which is not in between #ifdef SQLITE_OMIT_LOOKASIDE.

It seems that we could save some memory per connections
there if there were more #ifdef SQLITE_OMIT_LOOKASIDE
or am I missing something?

2) SQLITE_OMIT_TWOSIZE_LOOKASIDE is new in SQLite-3.31.
It's not documented at:
https://sqlite.org/compile.html#_options_to_omit_features
SQLITE_OMIT_WINDOWFUNC is also not documented in that page
and perhaps others.

3) I assume that whether SQLITE_OMIT_TWOSIZE_LOOKASIDE
is defined or not does not make any difference when SQLite
is built with SQLITE_OMIT_LOOKASIDE.
Is my assumption correct?

Regards
Dominique
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to