1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Reorder the elements of the Mem object for a small size reduction and

performance improvement.

FossilOrigin-Name: 0be3019ed794c10de67dfd645ceea7d45815bc4b
This commit is contained in:
drh
2014-09-16 14:16:31 +00:00
parent 7f4b19f170
commit 035e563bf6
7 changed files with 37 additions and 22 deletions

View File

@@ -803,11 +803,21 @@ static const Mem *columnNullValue(void){
#if defined(SQLITE_DEBUG) && defined(__GNUC__)
__attribute__((aligned(8)))
#endif
= {0, "", (double)0, {0}, 0, MEM_Null, 0,
= {
.flags = MEM_Null,
.enc = 0,
.n = 0,
.r = (double)0,
.u = {0},
.z = 0,
.zMalloc = 0,
.db = 0,
.xDel = 0,
#ifdef SQLITE_DEBUG
0, 0, /* pScopyFrom, pFiller */
.pScopyFrom = 0,
.pFiller = 0,
#endif
0, 0 };
};
return &nullMem;
}