• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Heimdal-398.1.2/lib/sqlite/

Lines Matching defs:lookaside

1985 ** memory allocation for the lookaside memory allocator on each
1987 ** size of each lookaside buffer slot and the second is the number of
1989 ** <i>default</i> lookaside size. The [SQLITE_DBCONFIG_LOOKASIDE]
1990 ** verb to [sqlite3_db_config()] can be used to change the lookaside
2070 ** [lookaside memory allocator] configuration for the [database connection].
2072 ** pointer to a memory buffer to use for lookaside memory.
2075 ** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the
2076 ** size of each lookaside buffer slot. ^The third argument is the number of
2081 ** rounded down to the next smaller multiple of 8. ^(The lookaside memory
2083 ** connection is not currently using lookaside memory, or in other words
2086 ** Any attempt to change the lookaside memory configuration when lookaside
6327 ** <dd>This parameter returns the number of lookaside memory slots currently
6332 ** satisfied using lookaside memory. Only the high-water value is meaningful;
6338 ** been satisfied using lookaside memory but failed due to the amount of
6339 ** memory requested being larger than the lookaside slot size.
6346 ** been satisfied using lookaside memory but failed due to all lookaside
6367 ** and lookaside memory used by all prepared statements associated with
9380 ** lookaside malloc provides a significant performance enhancement
9385 ** lookaside malloc subsystem. Each available memory allocation in
9386 ** the lookaside subsystem is stored on a linked list of LookasideSlot
9391 ** be stored in lookaside because in shared cache mode the schema information
9394 ** lookaside allocations are not used to construct the schema objects.
9398 u8 bEnabled; /* False to disable new lookaside allocations */
9507 Lookaside lookaside; /* Lookaside malloc configuration */
11051 sqlite3 *db; /* Optional database for lookaside. Can be NULL */
11084 int szLookaside; /* Default lookaside buffer size */
11085 int nLookaside; /* Default lookaside buffer count */
11873 ** it might have been allocated by lookaside, except the allocation was
11874 ** too large or lookaside was already full. It is important to verify
11875 ** that allocations that might have been satisfied by lookaside are not
11876 ** passed back to non-lookaside free() routines. Asserts such as the
11877 ** example above are placed on the non-lookaside free() routines to verify
11893 #define MEMTYPE_LOOKASIDE 0x02 /* Might have been lookaside memory */
13089 *pCurrent = db->lookaside.nOut;
13090 *pHighwater = db->lookaside.mxOut;
13092 db->lookaside.mxOut = db->lookaside.nOut;
13106 *pHighwater = db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT];
13108 db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT] = 0;
18528 ** TRUE if p is a lookaside memory allocation from db
18532 return p && p>=db->lookaside.pStart && p<db->lookaside.pEnd;
18550 return db->lookaside.sz;
18590 pBuf->pNext = db->lookaside.pFree;
18591 db->lookaside.pFree = pBuf;
18592 db->lookaside.nOut--;
18717 if( db->lookaside.bEnabled ){
18718 if( n>db->lookaside.sz ){
18719 db->lookaside.anStat[1]++;
18720 }else if( (pBuf = db->lookaside.pFree)==0 ){
18721 db->lookaside.anStat[2]++;
18723 db->lookaside.pFree = pBuf->pNext;
18724 db->lookaside.nOut++;
18725 db->lookaside.anStat[0]++;
18726 if( db->lookaside.nOut>db->lookaside.mxOut ){
18727 db->lookaside.mxOut = db->lookaside.nOut;
18743 ((db && db->lookaside.bEnabled) ? MEMTYPE_LOOKASIDE : MEMTYPE_HEAP));
18760 if( n<=db->lookaside.sz ){
18765 memcpy(pNew, p, db->lookaside.sz);
18778 (db->lookaside.bEnabled ? MEMTYPE_LOOKASIDE : MEMTYPE_HEAP));
80931 u8 enableLookaside = db->lookaside.bEnabled;
80935 db->lookaside.bEnabled = 0;
80944 db->lookaside.bEnabled = enableLookaside;
86264 ** the lookaside buffer belonging to database handle dbMem.
86644 u8 enableLookaside; /* Copy of db->lookaside.bEnabled */
86752 /* Disable lookaside memory allocation */
86753 enableLookaside = db->lookaside.bEnabled;
86754 db->lookaside.bEnabled = 0;
86776 /* Re-enable the lookaside buffer, if it was disabled earlier. */
86777 db->lookaside.bEnabled = enableLookaside;
93734 /* The sqlite3ResultSetOfSelect() is only used n contexts where lookaside
93736 assert( db->lookaside.bEnabled==0 );
107670 pParse->db->lookaside.bEnabled = 0;
108650 pParse->db->lookaside.bEnabled = 0;
109636 u8 enableLookaside; /* Saved value of db->lookaside.bEnabled */
109659 enableLookaside = db->lookaside.bEnabled;
109660 if( db->lookaside.pStart ) db->lookaside.bEnabled = 1;
109714 db->lookaside.bEnabled = enableLookaside;
110598 ** Set up the lookaside buffers for a database connection.
110600 ** If lookaside is already active, return SQLITE_BUSY.
110602 ** The sz parameter is the number of bytes in each lookaside slot.
110604 ** space for the lookaside memory is obtained from sqlite3_malloc().
110606 ** the lookaside memory.
110610 if( db->lookaside.nOut ){
110613 /* Free any existing lookaside buffer for this handle before
110617 if( db->lookaside.bMalloced ){
110618 sqlite3_free(db->lookaside.pStart);
110620 /* The size of a lookaside slot needs to be larger than a pointer
110637 db->lookaside.pStart = pStart;
110638 db->lookaside.pFree = 0;
110639 db->lookaside.sz = (u16)sz;
110646 p->pNext = db->lookaside.pFree;
110647 db->lookaside.pFree = p;
110650 db->lookaside.pEnd = p;
110651 db->lookaside.bEnabled = 1;
110652 db->lookaside.bMalloced = pBuf==0 ?1:0;
110654 db->lookaside.pEnd = 0;
110655 db->lookaside.bEnabled = 0;
110656 db->lookaside.bMalloced = 0;
110954 assert( db->lookaside.nOut==0 ); /* Fails on a lookaside memory leak */
110955 if( db->lookaside.bMalloced ){
110956 sqlite3_free(db->lookaside.pStart);
112416 /* Enable the lookaside-malloc subsystem */