drh
08c88eb0d3
First cut at optimizing single-row updates to use a one-pass algorithm. (CVS 4973)
...
FossilOrigin-Name: fba97f7874d723111e873d1470fc1a95e64f922d
2008-04-10 13:33:18 +00:00
drh
67ade0a2d0
Add three new test cases to speed4p.test. Two of the three do single-row
...
updates based on rowid and on primary key. (CVS 4972)
FossilOrigin-Name: a2da7f9ac24ed17329ce9bde2e521a5b945e4ec2
2008-04-10 13:32:36 +00:00
drh
0e6ed0f040
Fix a bug in the speed4p.test performance testing script. (CVS 4971)
...
FossilOrigin-Name: 80311594149af093f1719ec433a633c332a5955e
2008-04-10 13:20:21 +00:00
mlcreech
4003298ba2
Replace always-true condition with assertion (CVS 4970)
...
FossilOrigin-Name: be7f3240c21c01509263005af2ccc3d7626fe729
2008-04-08 03:09:22 +00:00
mlcreech
1f045330c0
Add test case for empty VFS list (CVS 4969)
...
FossilOrigin-Name: 6797814ec59fe819424e8e7f77779a719ecd82d3
2008-04-08 03:07:54 +00:00
drh
35b5a33e24
Add the sqlite3PutVarint32 routine as an alternative to sqlite3PutVarint.
...
Gives 0.5% speed increase. (CVS 4968)
FossilOrigin-Name: b2517a7d8f7275943d44cc301f9d54fc8a4653e7
2008-04-05 18:41:42 +00:00
drh
335d29d208
Smaller and hopefully faster routine for converting blob literals into binary. (CVS 4967)
...
FossilOrigin-Name: 92d49499ee3371db64267c7e2ba72a5e12ea76f3
2008-04-04 15:12:21 +00:00
drh
1c22f2ddfb
Fix the output labels on the tests in malloc9. (CVS 4966)
...
FossilOrigin-Name: 9987a7b193095dc90a83666bdac5e23105909cba
2008-04-04 12:21:25 +00:00
drh
bd4d397ca9
Fix the TCL interface so that it does not use unpublished interfaces. (CVS 4965)
...
FossilOrigin-Name: 046a98a8c88be7389c1571a819ccf1907a3f7217
2008-04-04 12:21:08 +00:00
drh
d094db1c7b
Remove superfluous code from btree.c. (CVS 4964)
...
FossilOrigin-Name: 40173010706fb52ecd60197ce6e97d51a1899267
2008-04-03 21:46:57 +00:00
drh
4b1d66c1ec
Make sure the zTail return from sqlite3_prepare() is initialized even
...
if there is a malloc failure. (CVS 4963)
FossilOrigin-Name: 040cffe2727936ce9228666fce5b00db47493e7d
2008-04-03 21:42:21 +00:00
drh
75e99a4727
Fix to the previous check-in so that it works on a intel Mac. (CVS 4962)
...
FossilOrigin-Name: 1d67f41c885d052ab10a33892938a85b56882b3d
2008-04-03 20:09:06 +00:00
drh
d543a42248
Use an improved RDTSC access routine. (CVS 4961)
...
FossilOrigin-Name: b4eba9c533f6aac9dde4f2c9796fe02e25158a0f
2008-04-03 19:40:59 +00:00
drh
17afdd238f
Changes speedtest8 and speedtest16 so that the database file can be specified
...
on the command-line. Allows speed testing against a :memory: database. (CVS 4960)
FossilOrigin-Name: 64badc50531668de45d76a3dcd90db17e1fe1ab1
2008-04-03 17:57:24 +00:00
danielk1977
fb103a8488
Instead of calling sqlite3_exec() to evaluate "PRAGMA encoding = UTF16" in sqlite3_open16(), set the connection encoding flag directly. (CVS 4959)
...
FossilOrigin-Name: 33a12e737c343dbc452a25321a63456c1a8f7548
2008-04-03 16:28:24 +00:00
drh
7720d6448a
Add the speedtest8.c and speedtest16.c files to the tools subdirectory. (CVS 4958)
...
FossilOrigin-Name: b8d211a76fa56d812fc1758b58d65eef832494cb
2008-04-03 16:01:27 +00:00
danielk1977
3a2c8c8b73
Avoid an out-of-bounds read in sqlite3_prepare() and fix a case where the output variable *pzTail was being set incorrectly. Fix for #3027 . (CVS 4957)
...
FossilOrigin-Name: c287a7b29410be12cf88f886e8e2525a42aa9c03
2008-04-03 14:36:25 +00:00
danielk1977
ce98bba24b
Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956)
...
FossilOrigin-Name: fd97f8762cb1e4653c932402940f74d7c0ebf71f
2008-04-03 10:13:01 +00:00
drh
41eb9e9986
Minor optimizations. (CVS 4955)
...
FossilOrigin-Name: e8529455803e0dab167f4faba5846fa1eafef741
2008-04-02 18:33:07 +00:00
drh
6a9ad3da22
Simplifications to the LockTable opcode. (CVS 4954)
...
FossilOrigin-Name: 66c5d715bbb732b0861a8a6f994cb4a8f259f2f8
2008-04-02 16:29:30 +00:00
mlcreech
6cc9c28920
Set flags = MEM_Null on allocation failure in sqlite3VdbeMemGrow (CVS 4953)
...
FossilOrigin-Name: 846f9739d3e288dc81e40f5bfab046bd80bb22b2
2008-04-02 04:23:32 +00:00
drh
47de955ea9
Avoid factoring single-instruction constants that end up getting replaced
...
by an SCopy instruction. (CVS 4952)
FossilOrigin-Name: e84ff57b6217afa84d60547dcc3a270b5e116818
2008-04-01 18:04:11 +00:00
drh
c5499bef4b
Add the testcase() macro. Additional CSE test coverage. (CVS 4951)
...
FossilOrigin-Name: 492490f9c86e52c7a706d9e1bf0ba216d5bb8aba
2008-04-01 15:06:33 +00:00
drh
b3843a82ea
Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)
...
FossilOrigin-Name: e25939fb25ec8bde8500a672ca5be3cbb514ac3a
2008-04-01 12:24:11 +00:00
drh
da250ea599
Fix the CSE mechanism so that it takes into account column affinity
...
changes that might be imposed by comparison operators. (CVS 4949)
FossilOrigin-Name: 91cc646e2b0c1d62a1989405cc9384a2c22d98d0
2008-04-01 05:07:14 +00:00
drh
2f7794c111
More test cases and bug fixes with CSE. (CVS 4948)
...
FossilOrigin-Name: 7e8156129d6d240fe046bbc4ea269ebe1657e2a1
2008-04-01 03:27:39 +00:00
mlcreech
aac7b93ea4
Add a configure option for using gcov (makes things easier for versions of
...
GCC that fail to build otherwise) (CVS 4947)
FossilOrigin-Name: 7d1e79716246b0dd4a64d7c9575b2300e0f6123e
2008-04-01 02:45:22 +00:00
drh
652fbf55c5
Initial test cases and bug fixes in the CSE logic. (CVS 4946)
...
FossilOrigin-Name: e5aff09ac693946dc7ebb2f245b6434995b12155
2008-04-01 01:42:41 +00:00
drh
e1349cb0f0
Break up the implementation of OP_Move, OP_Copy, and OP_SCopy to reduce
...
the number of branch instructions. (CVS 4945)
FossilOrigin-Name: 53e533d3a764d1973c24bffaacc505ea4b61a2b9
2008-04-01 00:36:10 +00:00
drh
9e6675f73f
Add the veryquick.test script for a very fast overview test that omits
...
all i/o and malloc testing. (CVS 4944)
FossilOrigin-Name: f61df8daa89f07dad2a0ded00c326ef35dead257
2008-03-31 23:51:35 +00:00
drh
e55cbd7228
Avoid duplicate OP_Column opcodes by remembering prior results.
...
This is similar to CSE, but only applies to columns. (CVS 4943)
FossilOrigin-Name: c29ee0fed23dcdbd9dde6b1e42b603100ea2389c
2008-03-31 23:48:03 +00:00
drh
678ccce8b3
Factor constant subexpressions out of loops. (CVS 4942)
...
FossilOrigin-Name: 2126db39854c751aea6c95c67894ed9b9dfc0763
2008-03-31 18:19:54 +00:00
danielk1977
a686bfcfa5
In setQuotedToken(), only make a malloced copy if the argument contains one or more " characters. (CVS 4941)
...
FossilOrigin-Name: b266924b8975b69bdb9ab45cf462e41436f89cc2
2008-03-31 17:41:18 +00:00
mlcreech
fe3f4e8a4a
Minor cleanup: Use size_t for struct size cast (CVS 4940)
...
FossilOrigin-Name: 618df68b8b78d376d30cea79a273fd39140f5033
2008-03-29 23:25:27 +00:00
drh
f704c1d6cd
Set exclusive locking mode by default on the speed4p test. (CVS 4939)
...
FossilOrigin-Name: 2d9fea95335ab8f399868f63c51bee89ed7633fa
2008-03-29 17:26:01 +00:00
drh
a2c20e433b
Make the sqlite3BtreeMoveto routine a no-op if the cursor is already pointing
...
at the cell we are trying to move to. (CVS 4938)
FossilOrigin-Name: 9b567ab61e7542141b7bc9c3c053c2d1180da92d
2008-03-29 16:01:04 +00:00
rse
907b46ca16
add two missing initializer values (CVS 4937)
...
FossilOrigin-Name: bf28f1c260b3efbec3b031edb97ccb7b4b039947
2008-03-29 12:50:33 +00:00
rse
28f667fc22
eliminate compile-time warnings related to missing field initializations (CVS 4936)
...
FossilOrigin-Name: d6a34d983e2181f1d1763bd3821a1e63f1e18818
2008-03-29 12:47:27 +00:00
rse
867780aea2
add three missing initializers (CVS 4935)
...
FossilOrigin-Name: f45f0593cf5dd8c0172b13c300a4a9393540e0d7
2008-03-29 12:39:39 +00:00
drh
8359d8cb9d
Add the --pause option to the main test driver. (CVS 4934)
...
FossilOrigin-Name: 37dfcdf529378a8ef37ed8672e28339a7d9e9da6
2008-03-29 11:00:54 +00:00
danielk1977
473c35223e
Fix a problem with min() and descending indexes. (CVS 4933)
...
FossilOrigin-Name: 39705b617a775d4299e98ac88fab4525a64d8b78
2008-03-28 19:16:56 +00:00
danielk1977
75eb016666
Fix a memory leak that can occur when the library API is misused. (CVS 4932)
...
FossilOrigin-Name: 2b6d3e015e3088531c62230c9b3bdab47ef534da
2008-03-28 19:16:33 +00:00
danielk1977
f934c5a98b
Do not incorrectly report a malloc() failure when allocating 0 bytes. Fixes a problem in bind.test. (CVS 4931)
...
FossilOrigin-Name: b99d19d651b00dcc7bdb36facfd9ecffe4fafd9f
2008-03-28 19:15:34 +00:00
danielk1977
e5f5b8f1f0
Fix for #3022 . Handle queries like "SELECT min(b) FROM T WHERE a = X AND b > X" when there is an index on (a,b). (CVS 4930)
...
FossilOrigin-Name: bce289753538ab504e55c4215d6cd4f5df137d9e
2008-03-28 18:11:16 +00:00
drh
334c80d615
Change the pager's sector size algorithm to the maximum of the size
...
reported by xSectorSize() from the VFS and 512. It was using the
maximum of xSectorSize() and the current page size, but that was adding
an extra 512 bytes to the size of the journal file in the common case. (CVS 4929)
FossilOrigin-Name: 17ea0c97a8bac1b34af1f9183d93a2f2a6af9690
2008-03-28 17:41:13 +00:00
danielk1977
5f09613545
Changes to the Mem structure to reduce the frequency of freeing and reallocating the dynamic buffer. (CVS 4928)
...
FossilOrigin-Name: d0bf73d81453da1d8e602e0445064d9f5e348063
2008-03-28 15:44:09 +00:00
drh
b940492e4a
Patch to the new memory tracing logic that allows it to build even if
...
memory debugging is turned off. (CVS 4927)
FossilOrigin-Name: 0a9c63b227b9c6d2bd0e7b491245947ffc83c828
2008-03-28 12:53:38 +00:00
danielk1977
dbdc4d49cb
If memory is leaked when running a test script with the --malloctrace option, write out a file called leaks.sql in the same format as mallocs.sql containing th e leaked applications. The same tools can then be used to examine the stack traces associated with leaked allocations. (CVS 4926)
...
FossilOrigin-Name: f1b97ed93183378ff56b4fe7ae8ea269c24092fc
2008-03-28 07:42:53 +00:00
drh
19db935225
Allow the xAccess method in the VFS to return -1 to signal an I/O
...
error, and in particular an SQLITE_IOERR_NOMEM. (CVS 4925)
FossilOrigin-Name: 3cb704c4c439425781644b1b653b7e50f02fd91e
2008-03-27 22:42:51 +00:00
danielk1977
9882d99993
Allow creation of ephemeral pseudo-tables - pseudo-tables that copy a pointer to a row when inserted instead of copying the row data. (CVS 4924)
...
FossilOrigin-Name: 1a58a87023f7780aee813ac64dda1a80021002a7
2008-03-27 17:59:01 +00:00