Remarks/questions about SQLITE_OMIT_LOOKASIDE & SQLITE_OMIT_TWOSIZE_LOOKASIDE

Dominique Pellé <[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <CAON-T_h+DHEef1Hsg3x=BighHDfcVJ4CoavouqP2B6hRLDrFtg@mail.gmail.com>
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
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.