Tweaked some SQLite settings to improve performance and reduce compiled file size
#ifndef SQLITE_PRIVATE
# define SQLITE_PRIVATE static
#endif
+
+/************** Begin of Sphere custom settings ******************************/
+
+// Recommended settings to optimize performance
+#define SQLITE_DQS 0
+#define SQLITE_DEFAULT_MEMSTATUS 0
+#define SQLITE_DEFAULT_WAL_SYNCHRONOUS 1
+#define SQLITE_LIKE_DOESNT_MATCH_BLOBS 1
+#define SQLITE_MAX_EXPR_DEPTH 0
+#define SQLITE_THREADSAFE 0
+#define SQLITE_USE_ALLOCA 1
+
+// Omit unused features to reduce compiled file size
+#define SQLITE_OMIT_AUTHORIZATION 1
+#define SQLITE_OMIT_AUTOINIT 1
+#define SQLITE_OMIT_AUTOMATIC_INDEX 1
+#define SQLITE_OMIT_AUTOVACUUM 1
+#define SQLITE_OMIT_CHECK 1
+#define SQLITE_OMIT_COMPOUND_SELECT 1
+#define SQLITE_OMIT_DATETIME_FUNCS 1
+#define SQLITE_OMIT_DECLTYPE 1
+#define SQLITE_OMIT_DEPRECATED 1
+#define SQLITE_OMIT_EXPLAIN 1
+#define SQLITE_OMIT_FLAG_PRAGMAS 1
+#define SQLITE_OMIT_INCRBLOB 1
+#define SQLITE_OMIT_INTEGRITY_CHECK 1
+#define SQLITE_OMIT_LOAD_EXTENSION 1
+#define SQLITE_OMIT_MEMORYDB 1
+#define SQLITE_OMIT_PROGRESS_CALLBACK 1
+#define SQLITE_OMIT_SCHEMA_PRAGMAS 1
+#define SQLITE_OMIT_SCHEMA_VERSION_PRAGMAS 1
+#define SQLITE_OMIT_SHARED_CACHE 1
+#define SQLITE_OMIT_TCL_VARIABLE 1
+#define SQLITE_OMIT_TEMPDB 1
+#define SQLITE_OMIT_TRACE 1
+#define SQLITE_OMIT_WAL 1
+
+/************** End of Sphere custom settings ********************************/
/************** Begin file ctime.c *******************************************/
/*
** 2010 February 23
