]>
git.ipfire.org Git - thirdparty/sqlite.git/log
dan [Tue, 10 Dec 2013 17:34:53 +0000 (17:34 +0000)]
Use SQLITE_FCNTL_SYNC instead of SQLITE_FCNTL_SYNC_OMITTED. Add documentation in for FCNTL_SYNC and FCNTL_COMMIT_PHASETWO.
FossilOrigin-Name:
46231af985a1a872d1dc3418591cbaacb0b7c249
dan [Tue, 10 Dec 2013 16:35:42 +0000 (16:35 +0000)]
Merge changes from the trunk.
FossilOrigin-Name:
3ee736a39d1fc175a297c5fdd0d2e1c5a9b5b18e
dan [Tue, 10 Dec 2013 16:27:59 +0000 (16:27 +0000)]
Fix handling of errors returned by the SQLITE_FCNTL_OMIT_SYNCED file-control.
FossilOrigin-Name:
d9a5f44f4a27336d41e60b6c3791bd018fbbff6f
drh [Mon, 9 Dec 2013 23:17:22 +0000 (23:17 +0000)]
Simplifications to the OP_MakeRecord opcode and the sqlite3VdbeSerialPut()
helper function.
FossilOrigin-Name:
7277a769694787e0332d1a4efc02041834661e2a
mistachkin [Mon, 9 Dec 2013 21:48:49 +0000 (21:48 +0000)]
Correct the VFS name as reported by the file control when explicitly using the 'win32-longpath' VFS.
FossilOrigin-Name:
c43b59dac1fbb67ec3a9d921005543046ad416ce
drh [Mon, 9 Dec 2013 21:06:46 +0000 (21:06 +0000)]
Reduce the number of times that OP_Column calls sqlite3VdbeMemMakeWriteable().
FossilOrigin-Name:
6b51863553e51334880fb322bdf74e51e35d0e61
drh [Mon, 9 Dec 2013 20:43:22 +0000 (20:43 +0000)]
Simplify the sqlite3BtreeKeyFetch() and sqlite3BtreeDataFetch() interfaces
to the storage engine.
FossilOrigin-Name:
bf97598592ff60fab2a06d8b31b0201200b91684
dan [Mon, 9 Dec 2013 20:42:03 +0000 (20:42 +0000)]
Modify the way some internal file-controls are invoked. In order to support multi-file transactions in the zipvfs extension.
FossilOrigin-Name:
32fb1784af4594161d954343e3787db702000a4d
drh [Mon, 9 Dec 2013 19:25:28 +0000 (19:25 +0000)]
Minor performance optimizations in pager.c.
FossilOrigin-Name:
ba9eef5f5293633d1479e1d877bf338edb2a9471
drh [Mon, 9 Dec 2013 19:03:26 +0000 (19:03 +0000)]
Performance optimizations for sqlite3VXPrintf().
FossilOrigin-Name:
9227ad48e1612b32a3a3e9551c49890f93abc0a7
drh [Mon, 9 Dec 2013 12:24:23 +0000 (12:24 +0000)]
Fix an incorrect test number in the output of the speedtest1.c program. No
changes to the test algorithms.
FossilOrigin-Name:
fbfc075a5a3c9c5c98353f396f9da7f7ec7c1c04
drh [Mon, 9 Dec 2013 03:07:21 +0000 (03:07 +0000)]
Avoid unnecessary (no-op) calls to sqlite3DbFree() from sqlite3VdbeMemRelease().
FossilOrigin-Name:
2d6dd7c2eb5a64f8994162b564a99ef0014b7460
drh [Mon, 9 Dec 2013 02:32:19 +0000 (02:32 +0000)]
Use memmove() rather than a home-made copy loop in insertCell() too.
FossilOrigin-Name:
a3d796b1673ca68ced247d63c22ddcfb1f9d56ea
drh [Mon, 9 Dec 2013 01:58:11 +0000 (01:58 +0000)]
Use memmove() rather than a home-made copy loop in dropCell() of btree.c,
for a size reduction and performance improvement.
FossilOrigin-Name:
78e1706804e88a0dd5dc40bee838a3a504cfa53b
drh [Mon, 9 Dec 2013 01:04:54 +0000 (01:04 +0000)]
Avoid unnecessary no-op calls from getAndInitPage() to btreeInitPage()
in the btree.c logic.
FossilOrigin-Name:
81f5ae13b2e23daee03151d32515387b7f5ba5e5
drh [Mon, 9 Dec 2013 00:47:11 +0000 (00:47 +0000)]
Use putVarint32() instead of putVarint() for a quantity that can never
exceed 2GiB - 1.
FossilOrigin-Name:
6996fb34445adedf463b66ed1f339ee1f27ce6e5
drh [Sun, 8 Dec 2013 23:33:28 +0000 (23:33 +0000)]
Another simplification to the OP_MakeRecord opcode, making it slightly
faster and very slightly smaller.
FossilOrigin-Name:
f2f5a3ce9d075c4b1ac586c5db3a623d9035402d
drh [Sun, 8 Dec 2013 22:59:29 +0000 (22:59 +0000)]
Avoid unnecessary calls to sqlite3VarintLen() from the OP_MakeRecord opcode.
FossilOrigin-Name:
7a234fc3c5e7970ffe0b8d6ac33c26acb64b5c4d
drh [Sun, 8 Dec 2013 19:54:52 +0000 (19:54 +0000)]
Interchange two conditions in an "if" statment in sqlite3PagerAcquire() for
very slight (0.06%) overall performance increase.
FossilOrigin-Name:
fbcc1a3ebb016225c3580181c908a2904cc184a5
drh [Sat, 7 Dec 2013 17:01:23 +0000 (17:01 +0000)]
Increase the version number to 3.8.3.
FossilOrigin-Name:
23d00f22872a907a8ebf5b80689ff7aa66686a07
drh [Sat, 7 Dec 2013 16:56:09 +0000 (16:56 +0000)]
At the start of each write transaction, check to see if the database file has
been moved, and if it has refuse to start the transaction, returning an
SQLITE_READONLY_DBMOVED error code.
FossilOrigin-Name:
369a23e00644f3ff8b6a2d2ed73b8cb65e9f124b
drh [Sat, 7 Dec 2013 16:45:05 +0000 (16:45 +0000)]
Back out the new device capability. The determination of whether or not a
file has moved is now done strictly using a file-control.
FossilOrigin-Name:
9c59f5af7ac4908583fab85d37241f200c40f02d
drh [Sat, 7 Dec 2013 12:29:22 +0000 (12:29 +0000)]
Actually look at i-node numbers to determine whether or not the database
file has moved.
FossilOrigin-Name:
2b1884dc14f9a04a04eebb3245fbe0daaff399eb
drh [Fri, 6 Dec 2013 23:25:27 +0000 (23:25 +0000)]
Performance optimization to the moveToRoot() subroutine in btree.c.
FossilOrigin-Name:
b5842a70f8e26456a8f0d39539bc266f097480a4
drh [Fri, 6 Dec 2013 22:45:31 +0000 (22:45 +0000)]
Use memcmp() instead of the BINARY collating function where possible, for
a performance boost.
FossilOrigin-Name:
c5a3a1af3c7bd34886e944a1fef2f6340ded24a0
drh [Fri, 6 Dec 2013 22:44:51 +0000 (22:44 +0000)]
Remove some commented-out code from sqlite3BtreeMovetoUnpacked() to try to make
it more readable.
FossilOrigin-Name:
2d62d1131f8bbc4e1f8f7aeaf0d91e3237fe3b7c
mistachkin [Fri, 6 Dec 2013 19:58:32 +0000 (19:58 +0000)]
Add the SQLITE_READONLY_DBMOVED error code to the sqlite3ErrName() function.
FossilOrigin-Name:
7789f801d720db5394117e764675cd4bbe6b2da1
drh [Fri, 6 Dec 2013 17:23:38 +0000 (17:23 +0000)]
Only error out on a database file move when attempting to start a write
transaction. Assume read transactions are still safe. And make the error
SQLITE_READONLY_DBMOVED instead of SQLITE_IOERR_NODB.
FossilOrigin-Name:
28348f2ada98c616241a51aecb70b63e87e6ddbb
drh [Fri, 6 Dec 2013 15:37:35 +0000 (15:37 +0000)]
Add code to detect if the database file is moved or deleted out from under
SQLite and return an SQLITE_IOERR_NODB.
FossilOrigin-Name:
8759a8e4d83b163e315eff316cf163f6ea42f2bb
dan [Fri, 6 Dec 2013 14:53:30 +0000 (14:53 +0000)]
drh [Thu, 5 Dec 2013 17:12:47 +0000 (17:12 +0000)]
Fix harmless compiler warnings and improve the MSVC makefile.
FossilOrigin-Name:
c632567063d81c4be404ce58cbac0eff7412f565
drh [Thu, 5 Dec 2013 16:41:55 +0000 (16:41 +0000)]
Fix two potential (and apparently harmless) shift overflows discovered by
the -fcatch-undefined-behavior option of clang.
FossilOrigin-Name:
e19eead8c9977ed4f00eac54c5bc7e90db78caa8
mistachkin [Tue, 3 Dec 2013 23:33:29 +0000 (23:33 +0000)]
Make use of the CC nmake macro even when cross-compiling (with MSVC).
FossilOrigin-Name:
aae7b30ebd9601882a02fe8cf46fbf0390ec3fac
mistachkin [Tue, 3 Dec 2013 22:33:35 +0000 (22:33 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
a12d214ecccc5d3372dbcedc88705b0092363971
mistachkin [Tue, 3 Dec 2013 22:32:48 +0000 (22:32 +0000)]
Add memory subsystem related defines to the compile-time options list.
FossilOrigin-Name:
52a44146dd7c5a7662545042045e23deab302c96
drh [Tue, 3 Dec 2013 19:49:55 +0000 (19:49 +0000)]
Remove a branch in STAT4 logic that is no longer reachable after
the previous change.
FossilOrigin-Name:
eca7d3f1612c7a009a9e4ef89f76f9b7e275d1e6
drh [Tue, 3 Dec 2013 19:16:06 +0000 (19:16 +0000)]
Fix a possible (and probably harmless) uninitialized variable in STAT3/4.
FossilOrigin-Name:
33ad4f91477907b7b3e5808c7ba11aacc9a83ba6
dan [Tue, 3 Dec 2013 18:26:56 +0000 (18:26 +0000)]
Fix an alignment problem in the stat3/stat4 code affecting 32-bit platforms.
FossilOrigin-Name:
14f9bc79014e5762b88b9f0b98f4d47a8092d127
dan [Tue, 3 Dec 2013 17:09:53 +0000 (17:09 +0000)]
Fix a typo in fts3varint.test preventing the valgrind permutation test from running.
FossilOrigin-Name:
b654a4ec729c86c6e94365fb0d3f83c598d4461a
dan [Tue, 3 Dec 2013 10:35:00 +0000 (10:35 +0000)]
Modify test file conflict2.test so that it works with the "inmemory_journal" permutation.
FossilOrigin-Name:
e4164fd8f75ce1c8d63bec70db7049b68208c12c
drh [Tue, 3 Dec 2013 10:14:28 +0000 (10:14 +0000)]
Remove an unnecessary branch from the UPDATE logic - one that was also
unreachable except following an OOM on x64.
FossilOrigin-Name:
72f972771457b8c8d9f859238d6a72b43f41d2c3
dan [Tue, 3 Dec 2013 09:49:52 +0000 (09:49 +0000)]
Add a "database_may_be_corrupt" directive to test file fuzz3.test. Reformat an assert() statement in vdbeaux.c to make its intent clearer.
FossilOrigin-Name:
9d8a0e132163f7adeaabbf6baba119e159addd41
drh [Tue, 3 Dec 2013 02:52:11 +0000 (02:52 +0000)]
Change some unreachable test conditions to NEVER().
FossilOrigin-Name:
7d99858bec699dface548c77649dfc50e7fb50d8
drh [Tue, 3 Dec 2013 00:11:40 +0000 (00:11 +0000)]
Fix a harmless compiler warning on MacOS.
FossilOrigin-Name:
74328de1d720fb35a97b476034406ca17d35ff5f
drh [Mon, 2 Dec 2013 21:25:40 +0000 (21:25 +0000)]
Another #if SQLITE_VERSION_NUMBER macro in speedtest1.c for compatibility
with older versions of SQLite.
FossilOrigin-Name:
bc8eacc7f71413184ef5be1412e51f8fd7174cd1
drh [Mon, 2 Dec 2013 01:24:05 +0000 (01:24 +0000)]
Still more #if SQLITE_VERSION_NUMBER macros in test/speedtest1.c to enable
compilation against older versions of SQLite.
FossilOrigin-Name:
4b20cf4206ac12975ca9c4ec7ef76aa21bbd734d
drh [Sun, 1 Dec 2013 18:10:01 +0000 (18:10 +0000)]
Add some #if SQLITE_VERSION_NUMBER macros to test/speedtest1.c in order to
make it compatible with older versions of SQLite so that it can be used for
historical speed comparisons.
FossilOrigin-Name:
a9e1627ae714156cf6bd419e41cf9b79fbbe99a9
drh [Sun, 1 Dec 2013 01:18:29 +0000 (01:18 +0000)]
Fix typos in the header comment on the sqlite3Atoi64() routine.
FossilOrigin-Name:
c85e0c546ea6c6be46deea5c7a716b5fb553c7b4
drh [Sat, 30 Nov 2013 12:49:28 +0000 (12:49 +0000)]
Detect a corrupt UnpackedRecord and return SQLITE_CORRUPT prior to calling
sqlite3BtreeMovetoUnpacked().
FossilOrigin-Name:
55ec474db8935ef36fae30da5d11f5701c60c088
drh [Fri, 29 Nov 2013 15:39:36 +0000 (15:39 +0000)]
Change the name of the CORRUPTIBLE macro to CORRUPT_DB.
FossilOrigin-Name:
f865be10e85a4063394a21827db2d854fc25960c
drh [Fri, 29 Nov 2013 15:06:27 +0000 (15:06 +0000)]
Add a new sqlite3_test_control() that indicates that database files are
always well-formed. Use this during testing to enable assert() statements
that prove conditions that are always true for well-formed databases.
FossilOrigin-Name:
15e4f63d1f3cbcd0aa789fd3e460cd6e4d3338f9
dan [Thu, 28 Nov 2013 19:28:00 +0000 (19:28 +0000)]
Update a few test cases to account for the new error message formats.
FossilOrigin-Name:
65a5bce3ffb656a43a2e5d2308a4bc67497105de
dan [Thu, 28 Nov 2013 14:14:31 +0000 (14:14 +0000)]
Remove an assert() condition that may not be true if the database file is corrupt. Update a test case in corruptC.test.
FossilOrigin-Name:
0bcf75516f59e49536f9e5c5cd542058ab61e2fc
dan [Thu, 28 Nov 2013 06:17:56 +0000 (06:17 +0000)]
Fix a test case in temptrigger.test so that it works in auto-vacuum mode.
FossilOrigin-Name:
c3b7a0e61f4ad690a56ece1d348a3ef74ab300fe
drh [Wed, 27 Nov 2013 21:07:03 +0000 (21:07 +0000)]
Remove unnecessary local variables from sqlite3VdbeExec() in order to
reduce stack-space requirements of that routine.
FossilOrigin-Name:
81891288d9f281cf2ceb4cd701c0c3231b1bab19
drh [Wed, 27 Nov 2013 19:17:49 +0000 (19:17 +0000)]
Update documentation of sqlite3_column() for clarity. Update evidence marks
on test cases.
FossilOrigin-Name:
ec2d47a1db2349d5c9b4fe465506e0e347f77921
mistachkin [Wed, 27 Nov 2013 18:00:20 +0000 (18:00 +0000)]
Fix spelling typo in speedtest1.exe.
FossilOrigin-Name:
ae90300e8e3221c208343e5e0d5e5f2381f38107
drh [Wed, 27 Nov 2013 14:50:51 +0000 (14:50 +0000)]
Fix some harmless compiler warnings in speedtest1.exe.
FossilOrigin-Name:
c75f561f337a56c14335366ed9990e44bc9fc594
drh [Wed, 27 Nov 2013 13:48:02 +0000 (13:48 +0000)]
Additional test cases for skip-scan.
FossilOrigin-Name:
ce70803f5e1bfb4dc495d3a0c2ddd5ee6c3a10fe
drh [Wed, 27 Nov 2013 13:24:18 +0000 (13:24 +0000)]
Make sure the colWidth array is correctly initialized in the ".explain"
command of the shell.
FossilOrigin-Name:
ceebcdcaf1acf409b77b4cc2903b4570001f098a
drh [Wed, 27 Nov 2013 04:22:27 +0000 (04:22 +0000)]
Lower the threshold for using skip-scan from 50 to 18, based on experiments
that show that 18 is the approximate break-even point for a variety of
schemas.
FossilOrigin-Name:
83c0bb9913838d18ba355033afde6e38b4690842
mistachkin [Wed, 27 Nov 2013 04:00:32 +0000 (04:00 +0000)]
Avoid using the GetVersionEx functions if they are considered deprecated.
FossilOrigin-Name:
afdca29966805ed0d49fd61a161eb3a3919b5963
mistachkin [Wed, 27 Nov 2013 03:01:34 +0000 (03:01 +0000)]
Avoid using the GetVersionEx functions if they are considered deprecated.
FossilOrigin-Name:
0ea9e4722be10221c99cce5bc48d13c7b34e739f
drh [Wed, 27 Nov 2013 01:23:53 +0000 (01:23 +0000)]
Add additional test cases for skip-scan.
FossilOrigin-Name:
1ae4915d4d08ee5ce526c04d1d0cda1078641793
drh [Wed, 27 Nov 2013 00:45:49 +0000 (00:45 +0000)]
Add additional test cases and requirements evidence marks for WITHOUT ROWID.
FossilOrigin-Name:
b408d788105efd007e3546f45d5dd15a5dc5688d
drh [Tue, 26 Nov 2013 23:27:07 +0000 (23:27 +0000)]
Make sure the update hook is not invoked for WITHOUT ROWID tables, as
the documentation specifies. This bug was found while adding requirements
marks, so a few extraneous requirements marks are included in this
check-in.
FossilOrigin-Name:
0978bac6b8aee229d7a0d148546f50d380d06a06
drh [Tue, 26 Nov 2013 22:46:54 +0000 (22:46 +0000)]
Add requirements test cases for determining when an expression is true and
when it is false.
FossilOrigin-Name:
838654e56304a5788ac384ca506c1938f48af488
drh [Tue, 26 Nov 2013 21:18:45 +0000 (21:18 +0000)]
Changing the CAST behavior of REAL values actually changed a documented
requirement. So we also have to change the requirement evidence text to
match.
FossilOrigin-Name:
d84aa44e3919e25f9520c5120a35ec21e837a9ea
dan [Tue, 26 Nov 2013 18:22:59 +0000 (18:22 +0000)]
Reduce the amount of code used to implement OP_SeekGe and similar.
FossilOrigin-Name:
8b12a15a2a8139d75f56a099f3f6af844da3ac9c
drh [Tue, 26 Nov 2013 16:51:13 +0000 (16:51 +0000)]
Fix a possible NULL pointer deference in the wordcount test program.
FossilOrigin-Name:
6f91dca0de908dc2b15130a6593a61c3147a409f
drh [Tue, 26 Nov 2013 16:48:04 +0000 (16:48 +0000)]
Change tclsqlite3.c so that it never invokes ctype macros with signed
character arguments.
FossilOrigin-Name:
c07caabf2396c84b2ccb0e9f98ae6279ce41c59d
drh [Tue, 26 Nov 2013 16:20:28 +0000 (16:20 +0000)]
Do not try to run the atof1.test test script on ARM hardware which lacks
the "long double" type.
FossilOrigin-Name:
fafca560f28f526abdf1474c33af94665a65aaf0
drh [Tue, 26 Nov 2013 15:45:02 +0000 (15:45 +0000)]
Change the REAL-to-INTEGER casting behavior so that if the REAL value
is greater than
9223372036854775807 .0 then it is cast to the latest
possible integer,
9223372036854775807 . This is sensible and the way
most platforms work in hardware. The former behavior was that oversize
REALs would be cast to the smallest possible integer, -
9223372036854775808 ,
which is the way Intel hardware works.
FossilOrigin-Name:
6f53fc7106658d44edf63068f9a8522fa5a7688b
mistachkin [Tue, 26 Nov 2013 00:28:50 +0000 (00:28 +0000)]
Better support for UTF-8 paths on Cygwin.
FossilOrigin-Name:
9954327c0febc0ece46f62e05976330a1b82b48f
mistachkin [Mon, 25 Nov 2013 23:42:21 +0000 (23:42 +0000)]
Add SQLITE_CONFIG_WIN32_HEAPSIZE option to configure the maximum isolated heap size on Windows.
FossilOrigin-Name:
914e6c9d88828b66e8385c4a264702471faa34cf
drh [Mon, 25 Nov 2013 22:24:36 +0000 (22:24 +0000)]
Change a while-loop into a do-loop in sqlite3VdbeRecordCompare() and add
an assert() to verify that the do-loop really is appropriate. This gives
about a 10% performance boost in that routine, or a 0.9% boost overall.
FossilOrigin-Name:
011a6be439eb884c944a3318bf631bed3135f8ec
mistachkin [Mon, 25 Nov 2013 21:49:04 +0000 (21:49 +0000)]
Clarify docs for the SQLITE_CONFIG_WIN32_HEAPSIZE option.
FossilOrigin-Name:
51e876074af4e34ba01ed122e3bcc042243c9e88
drh [Mon, 25 Nov 2013 21:41:24 +0000 (21:41 +0000)]
Remove a NEVER() from a branch that is now reachable during OOM faults.
FossilOrigin-Name:
18bdcb05c26860643f53a6b9e85f84109a3ebe5a
drh [Mon, 25 Nov 2013 20:50:23 +0000 (20:50 +0000)]
Optimizations to the sqlite3BtreeMovetoUnpacked() routine in storage engine
making it about 17.8% faster, which in turn makes SQLite over 1.2% faster
overall.
FossilOrigin-Name:
032e89934f36de10652d3454a0065a337827221a
drh [Mon, 25 Nov 2013 20:14:13 +0000 (20:14 +0000)]
Return an SQLITE_CORRUPT error if the content size field of a table record
extends off the end of a page.
FossilOrigin-Name:
b48c4e402125fb8d2208d358f6e9bbc351f3a49d
drh [Mon, 25 Nov 2013 17:38:26 +0000 (17:38 +0000)]
Uses shifts rather than division for arithmetic on the cell indices, since
those indices are always non-negative.
FossilOrigin-Name:
5bf2a3feeb2c83671bf3edeb20a549239e6873bf
drh [Mon, 25 Nov 2013 16:52:59 +0000 (16:52 +0000)]
Optimize the skipping of the payload size field when doing a binary search
for a rowid.
FossilOrigin-Name:
55e5bfa231dd52a7cf9ec982967da4963867b9e5
drh [Mon, 25 Nov 2013 16:23:52 +0000 (16:23 +0000)]
Arrange for sqlite3BtreeMovetoUnpacked() to always leave the cursor cell
parse cache invalidated. This fixes issues with previous check-ins on this
branch and also runs faster.
FossilOrigin-Name:
a74675607fe041e37a58a3ec287131de0e5090c3
drh [Mon, 25 Nov 2013 15:01:38 +0000 (15:01 +0000)]
More optimizations to sqlite3BtreeMovetoUnpacked(). But there are failures
in TH3. Committing this intermediate state to facilitate bisecting.
FossilOrigin-Name:
f80497be446f84d2000e454e32d717887a7d0cee
drh [Mon, 25 Nov 2013 14:10:15 +0000 (14:10 +0000)]
More improvements to sqlite3BtreeMovetoUnpacked() performance.
FossilOrigin-Name:
88680698231b7141401f7166e3aff8dbc6008030
drh [Mon, 25 Nov 2013 02:38:55 +0000 (02:38 +0000)]
Performance improvements in sqlite3BtreeMovetoUnpacked().
FossilOrigin-Name:
d0fb7acea7cbfe6f2d84782a28bb51675a06576f
mistachkin [Sun, 24 Nov 2013 23:18:21 +0000 (23:18 +0000)]
Better support for UTF-8 paths on Cygwin.
FossilOrigin-Name:
484162b6e5a8ad9385fe2eb2a5254d13d7b0bc36
drh [Sun, 24 Nov 2013 01:14:14 +0000 (01:14 +0000)]
Add the --scratch parameter to speedtest1. Improved error messages when
misconfiguring memory parameters in speedtest1.
FossilOrigin-Name:
8f3c767a30c552548ead104ca125f182ce4849ad
drh [Sun, 24 Nov 2013 00:46:00 +0000 (00:46 +0000)]
The MEMSYS5 algorithm does not have to return the block with the lowest
address. Any block of the appropriate size will do. Use the first block
found on the freelist for the appropriate size for a performance improvement.
FossilOrigin-Name:
12e612e8e7c4a6f83acf0daf5608151fb5ec1575
drh [Sat, 23 Nov 2013 22:45:12 +0000 (22:45 +0000)]
A much simpler fix is to simply change MEMSYS5 so that it takes any free
block of the appropriate size (the first on the list of free blocks) rather
than searching for the one with the smallest address. This is also faster
than using the min-heap algorithm. Need to research to verify that the
allocator still satisfies the Robson proof, however.
FossilOrigin-Name:
8191b512122c13d7fa61d8e5487652f13ec172f7
drh [Sat, 23 Nov 2013 21:29:07 +0000 (21:29 +0000)]
Add newlines at the end of some error messages in speedtest1.
FossilOrigin-Name:
6b98f0af7a6522873245d30598d7c79b8aeb9fa0
drh [Sat, 23 Nov 2013 11:45:58 +0000 (11:45 +0000)]
Report errors from sqlite3_exec() and sqlite3_config() in speedtest1. Fix
a bug in the main testing logic that was found by these error reports.
FossilOrigin-Name:
659f1a98ae698d062269f8fdac84f733a460f5de
drh [Sat, 23 Nov 2013 04:32:18 +0000 (04:32 +0000)]
Fix the order of parameters to SQLITE_CONFIG_PAGECACHE in the
speedtest1.exe program.
FossilOrigin-Name:
dbe85ef6d265ed31f4b56dfc0c72bad6adcfd7f0
mistachkin [Sat, 23 Nov 2013 04:22:19 +0000 (04:22 +0000)]
Adjust MSVC makefile to avoid using forward slashes in file names.
FossilOrigin-Name:
facf6deaa61ed2e1744711d621d7f50fe2067803
drh [Sat, 23 Nov 2013 04:16:58 +0000 (04:16 +0000)]
Add the "speedtest1.exe" test program.
FossilOrigin-Name:
fb6f0c6d77b2318e6e587951514aea91db128c3c
mistachkin [Sat, 23 Nov 2013 00:27:29 +0000 (00:27 +0000)]
Add experimental sqlite3_config option to control the native Win32 heap size.
FossilOrigin-Name:
f09f11e94b5a7c2e51d99c3700d2acd2f3903de9
mistachkin [Fri, 22 Nov 2013 21:32:44 +0000 (21:32 +0000)]
Fix harmless compiler warning.
FossilOrigin-Name:
f336c18fb72ab90e93640b12ac540d41accc7658
mistachkin [Fri, 22 Nov 2013 00:49:43 +0000 (00:49 +0000)]
Minor correction to the batch build tool for MSVC.
FossilOrigin-Name:
22144c9df260910c4b67960b0e6a6bd5a6758cd7
drh [Thu, 21 Nov 2013 23:37:02 +0000 (23:37 +0000)]
Fix a harmless clang warning in the command-line shell.
FossilOrigin-Name:
3d47a556f0074e39b880186fb7661b1b8955f742
drh [Thu, 21 Nov 2013 22:02:52 +0000 (22:02 +0000)]
Slight change to the --timer output on wordcount for better display on
windows: Avoid showing the full pathname of the executable.
FossilOrigin-Name:
b9e047b9e3c2ee4df4a2d921db62f590fa5452d3