Proposed template preprocessor magic for activating mmap only on platforms
where we know it works. FossilOrigin-Name: d96272f031102514b02bd839aac9e37618872200
This commit is contained in:
parent
6d81449fc6
commit
a3a2b3bdc0
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
||||
C Reorder\stwo\sconditions\sto\smake\scoverage\stesting\seasier.
|
||||
D 2013-04-02T01:45:10.945
|
||||
C Proposed\stemplate\spreprocessor\smagic\sfor\sactivating\smmap\sonly\son\splatforms\nwhere\swe\sknow\sit\sworks.
|
||||
D 2013-04-02T10:29:13.935
|
||||
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
|
||||
F Makefile.in df3e48659d80e1b7765785d8d66c86b320f72cc7
|
||||
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
|
||||
@ -180,7 +180,7 @@ F src/sqlite.h.in 42c69ea00dfcce84394d6ce0d8dac7bb3d2ecff2
|
||||
F src/sqlite3.rc fea433eb0a59f4c9393c8e6d76a6e2596b1fe0c0
|
||||
F src/sqlite3ext.h 7183ab832e23db0f934494f16928da127a571d75
|
||||
F src/sqliteInt.h 1664dc5ad6f8d4dab871416628aa3271044d66c0
|
||||
F src/sqliteLimit.h 83d0cd0ce3050a80930406d3c7aecb48c1ccdfc5
|
||||
F src/sqliteLimit.h 4d8d04c43bf2886d94f1ab7992fee5081e09a7f5
|
||||
F src/status.c bedc37ec1a6bb9399944024d63f4c769971955a9
|
||||
F src/table.c 2cd62736f845d82200acfa1287e33feb3c15d62e
|
||||
F src/tclsqlite.c 9a716c737590d2f129d71c8fc7065e5aba0e7222
|
||||
@ -1040,7 +1040,7 @@ F tool/vdbe-compress.tcl f12c884766bd14277f4fcedcae07078011717381
|
||||
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
|
||||
F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
|
||||
F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac
|
||||
P 3628e86bf131cb205f08a4b299d84007cd6b25c3
|
||||
R 5022c5197e31d50bddc957f6984f11f1
|
||||
P 793ba4e996426522eeaa86589a9e974fa1fc1522
|
||||
R 2b5ee6ceec98b53d533d4ea410a1bfc7
|
||||
U drh
|
||||
Z 379e6b5efd0a997c87c1f9a5494b7aa5
|
||||
Z ead310385cbe70188969099b54288940
|
||||
|
@ -1 +1 @@
|
||||
793ba4e996426522eeaa86589a9e974fa1fc1522
|
||||
d96272f031102514b02bd839aac9e37618872200
|
@ -210,6 +210,23 @@
|
||||
/*
|
||||
** Default maximum size of memory used by xFetch in the VFS.
|
||||
*/
|
||||
#ifndef SQLITE_DEFAULT_MMAP_LIMIT
|
||||
# define SQLITE_DEFAULT_MMAP_LIMIT (256*1024*1024)
|
||||
#ifdef __APPLE__
|
||||
# include <TargetConditions.h>
|
||||
# if defined(TARGET_OS_IPHONE)
|
||||
# define SQLITE_DEFAULT_MMAP_LIMIT 0
|
||||
# endif
|
||||
#endif
|
||||
#ifndef SQLITE_DEFAULT_MMAP_LIMIT
|
||||
# if defined(__linux__) \
|
||||
|| defined(_WIN32) \
|
||||
|| (defined(__APPLE__) && defined(__MACH__) && !defined(TARGET_OS_IPHONE)) \
|
||||
|| defined(__sun) \
|
||||
|| defined(__DragonFly__) \
|
||||
|| defined(__FreeBSD__) \
|
||||
|| defined(__NetBSD__) \
|
||||
|| defined(__OpenBSD__)
|
||||
# define SQLITE_DEFAULT_MMAP_LIMIT (256*1024*1024)
|
||||
# else
|
||||
# define SQLITE_DEFAULT_MMAP_LIMIT 0
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user