aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-08-22 14:34:05 +0000
committerdrh <drh@noemail.net>2014-08-22 14:34:05 +0000
commit14a924a5cd77e353ebae67d3b4bc7e64b7bd715a (patch)
tree59a4fccd3bd71ac9ed3004b03c9f1ba2e5d8fcc5 /src/sqliteInt.h
parent3f5b199eb596a6e8031647d93e00451ade43806e (diff)
downloadsqlite-14a924a5cd77e353ebae67d3b4bc7e64b7bd715a.tar.gz
sqlite-14a924a5cd77e353ebae67d3b4bc7e64b7bd715a.zip
Get the sqlite3VdbeSerialGet() routine to run faster by avoiding the use
of local variables. FossilOrigin-Name: 8267d82174099e548a4f78d06af0c6324c89b83d
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index ee52487d6..5202beff7 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -154,6 +154,18 @@
#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
** threadsafe. 1 means the library is serialized which is the highest