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

Get the sqlite3VdbeSerialGet() routine to run faster by avoiding the use

of local variables.

FossilOrigin-Name: 8267d82174099e548a4f78d06af0c6324c89b83d
This commit is contained in:
drh
2014-08-22 14:34:05 +00:00
parent 3f5b199eb5
commit 14a924a5cd
4 changed files with 73 additions and 47 deletions

View File

@@ -153,6 +153,18 @@
# define SQLITE_PTR_TO_INT(X) ((int)(X))
#endif
/*
** A macro to hint to the compiler that a function should not be
** inlined.
*/
#if defined(__GNUC__)
# define SQLITE_NOINLINE __attribute__((noinline))
#elif defined(_MSC_VER)
# define SQLITE_NOINLINE __declspec(noinline)
#else
# define SQLITE_NOINLINE
#endif
/*
** The SQLITE_THREADSAFE macro must be defined as 0, 1, or 2.
** 0 means mutexes are permanently disable and the library is never