1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Improve performance by about 10% by avoiding excess calls to get

the thread-specific data. (CVS 2921)

FossilOrigin-Name: a8c74febec11eb689ca9f6b454f8c8bbadfc49d7
This commit is contained in:
drh
2006-01-12 01:25:18 +00:00
parent b4bc7057e5
commit 70ff98ab74
7 changed files with 54 additions and 34 deletions

View File

@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.168 2006/01/11 21:41:22 drh Exp $
** $Id: util.c,v 1.169 2006/01/12 01:25:18 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -509,7 +509,7 @@ static void OSMALLOC_FAILED(){
#define OSSIZEOF(x) sqlite3OsAllocationSize(x)
#define OSMALLOC_FAILED()
#endif
#endif /* SQLITE_MEMDEBUG */
/*
** End code for memory allocation system test layer.
**--------------------------------------------------------------------------*/
@@ -1332,7 +1332,7 @@ const ThreadData *sqlite3ThreadDataReadOnly(){
** is, then deallocate it.
*/
void sqlite3ReleaseThreadData(){
sqlite3OsThreadSpecificData(0);
sqlite3OsThreadSpecificData(-1);
}
/*