aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2023-04-07 14:33:33 +0000
committerdrh <>2023-04-07 14:33:33 +0000
commit34ceb7e62279f2bb274e70166a4e9c56e6794853 (patch)
treea74787017a81bf0f22bd5c02cb869dfdd4b2c93d /src/sqliteInt.h
parentb39f037ca58bba4643e47552efe3c7092092d46f (diff)
downloadsqlite-34ceb7e62279f2bb274e70166a4e9c56e6794853.tar.gz
sqlite-34ceb7e62279f2bb274e70166a4e9c56e6794853.zip
Clone insertCell() into insertCellFast() for use by sqlite3BtreeInsert() for
a substantial performance increase. FossilOrigin-Name: f225afd90c8e65661d8b855050f0ee1a8fe4c0f3bcec824aa5a66d906f3c7119
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 9b189124d..752cbbdb7 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -286,10 +286,13 @@
*/
#if defined(__GNUC__)
# define SQLITE_NOINLINE __attribute__((noinline))
+# define SQLITE_INLINE __attribute__((always_inline)) inline
#elif defined(_MSC_VER) && _MSC_VER>=1310
# define SQLITE_NOINLINE __declspec(noinline)
+# define SQLITE_INLINE __forceinline
#else
# define SQLITE_NOINLINE
+# define SQLITE_INLINE
#endif
/*