drh
1a7df58c1a
Add SQLITE_USE_ALLOCA to the --lean configuration in speed-check.sh.
...
FossilOrigin-Name: fe07609efc31c4639c40fbda501c55f443756ad2
2016-10-01 23:55:23 +00:00
drh
445f3d564c
Rearrange fields in the Parse object to reduce the amount of initialization
...
required.
FossilOrigin-Name: 361940b44dd17bf2b39fc0e0716c0de6b2b7f4f7
2016-10-01 21:43:37 +00:00
drh
216b70ff82
Reduce the width of a memset() to avoid double-initializing some variables.
...
FossilOrigin-Name: 34edbfd12d6cfa6bbfa30eef9276a4865eadc869
2016-10-01 20:43:41 +00:00
drh
230368c30d
Remove an unnecessary memset() call.
...
FossilOrigin-Name: a76bff74ce47c9c98106566bde5d781992657e22
2016-10-01 19:32:54 +00:00
drh
d8e4b13256
Use sqlite3DbMallocRawNN() where appropriate, instead of
...
sqlite3DbMallocRaw().
FossilOrigin-Name: 54a449a41d8d32da2f8b73689227ced866974a18
2016-10-01 19:21:56 +00:00
drh
8dfef1175e
Make sure deleting an unused prepared statement does not reference
...
uninitialized fields in the structure.
FossilOrigin-Name: 7983eef0422439bfc85950554b000d46a9767ee3
2016-10-01 16:53:45 +00:00
drh
76336d5b9d
Avoid accessing Vdbe.pc if it is uninitialized. Check Vdbe.magic first.
...
FossilOrigin-Name: 6ac6e4462a08cb2f3d28e4a23218fc1b110a2148
2016-10-01 11:39:53 +00:00
drh
ab3182f7c4
Avoid unnecessary zeroing of fields in the Vdbe object when it is allocated.
...
FossilOrigin-Name: 1e21bbe836539e64d24857f4faa3d12cd607dc7e
2016-10-01 00:37:50 +00:00
drh
cd9af608e1
Avoid initializing the column-cache section of the Parse object, since entries
...
in the cache will be initialized as they are used, and avoiding the initial
memset() saves many CPU cycles.
FossilOrigin-Name: 63cf7eafae5c3c1379edf416c5157010c7c120b5
2016-09-30 22:24:29 +00:00
drh
94881d732b
Fix an always-true conditional left over from the previous commit.
...
FossilOrigin-Name: ab12fce3318db447995e1465f34a1e43cd623d6a
2016-09-30 21:20:37 +00:00
drh
9b40d13f43
Fix the Parse.aColCache column cache so that all of the valid entries are
...
in the first Parse.nColCache slots.
FossilOrigin-Name: 6028502059ccbd3699637b7a70a6d8ce1b7c3dad
2016-09-30 20:22:27 +00:00
drh
e05950d878
Another simplification to the Parse object.
...
FossilOrigin-Name: c1419727f5e4cb3ef63b5853b6ef3b1e53af0651
2016-09-30 19:14:32 +00:00
drh
1d96cc60d0
Remove unnecessary fields from the Parse object.
...
FossilOrigin-Name: 814e41da3563eecf5514811bc8ab2df4f5cc0d4b
2016-09-30 18:35:36 +00:00
drh
2a1df937ab
Avoid unnecessary Mem initializations when generating a new sqlite3_stmt
...
object.
FossilOrigin-Name: 47ae1cda8dc255d100aeb8cb90ea4c9e449509be
2016-09-30 17:46:44 +00:00
drh
dd3bfe8648
Small size and performance optimization to sqlite3VdbeChangeP5().
...
FossilOrigin-Name: 3c93c8f5bbf54ed2a331079b28fdd94eb0e59e69
2016-09-29 20:28:34 +00:00
drh
2831c4d123
Remove the peep-hole optimization of removing OP_Close opcodes that come
...
before OP_Halt, as the extra work of removing those opcodes uses more cycles
than just running them.
FossilOrigin-Name: 984a96d79656c1b095aba1f88aca4bb787ba0bd8
2016-09-29 19:50:02 +00:00
drh
42735c7d30
Size and performance optimization to sqlite3ValueFromExpr()
...
FossilOrigin-Name: 945f82bc44c5a431c0fef0d36cf016671d7ade1e
2016-09-29 19:27:16 +00:00
drh
22fa36dc04
Clarification and typo-fixes in comments. No changes to code.
...
FossilOrigin-Name: e2cd79aa3104c51035bf29c548c322564731b75f
2016-09-29 15:53:28 +00:00
drh
5f33eaa6a4
Use Knuth multiplicative hashing for the symbol table.
...
FossilOrigin-Name: cc29ddd6be60bdbf107f285c9eb57d5896ebca2d
2016-09-28 20:42:31 +00:00
drh
5e769a50ad
Two more typo fixes in comments.
...
FossilOrigin-Name: 40c0fb0af678797c39a99853f9f4102464c16f4b
2016-09-28 16:05:53 +00:00
drh
ed204d1f44
Fix typos in comments. No code changes.
...
FossilOrigin-Name: 5bbd071d57a8048e2ca17bf97761e4f27fc5a6bf
2016-09-28 16:04:22 +00:00
drh
96fdcb40af
Update requirements marks due to improvements in the wording of documentation.
...
No changes to code.
FossilOrigin-Name: bf903b2ecac5d7b25c9cc899cae41f1d69aafe4e
2016-09-27 00:09:33 +00:00
drh
2e34326555
Fix FTS3 test cases due to the flattener change of the previous check-in.
...
FossilOrigin-Name: 0c8b9b211f4285e2ab77cf5e0820088ef10e05c4
2016-09-27 00:03:25 +00:00
dan
4c5ebee0b5
When flattening a query of the form "SELECT * FROM (SELECT * FROM tbl WHERE x=?) WHERE y=?", ensure that the final WHERE clause is "x=? AND y=?" instead of "y=? AND x=?". Although it is still not guaranteed, this makes the order in which WHERE clause terms are processed comport more closely to users expectations.
...
FossilOrigin-Name: cf7f9e6d5abff273dd2f8a8dce27d52e1449b3be
2016-09-26 14:39:05 +00:00
drh
0cd874bd57
Inline the relevent parts of sqlite3ExprAlloc() into spanExpr(), for a
...
performance improvement.
FossilOrigin-Name: fe89225eab777c2c9cb1cbc31092b9e39f516842
2016-09-26 12:38:22 +00:00
drh
410c301fea
Omit the LikeOp object from the parser. Change more sqlite3PExpr() calls into
...
sqlite3ExprAlloc() calls.
FossilOrigin-Name: 795454a3fa5f9ccc486593b5e16e8fad38c934fb
2016-09-24 17:42:43 +00:00
drh
87f0e9863d
Add -DSQLITE_MAX_EXPR_DEPTH=0 to the --lean option on speed-check.sh.
...
FossilOrigin-Name: a8cb1390fc1234b2e925090c4d770cca5d587bea
2016-09-24 01:41:59 +00:00
drh
209bc522b0
Add the EP_Leaf flag bit to the Expr.flags field to indicate Expr
...
nodes that do not have substructure. Use that bit to avoid unnecessary
recursion.
FossilOrigin-Name: 8a6ea455cd1bf42ae0a7f1f1789baf88d782db13
2016-09-23 21:36:24 +00:00
drh
e1c03b6233
Use sqlite3ExprAlloc() instead of sqlite3PExpr() for leaf nodes in the
...
expression tree, where appropriate. This is both smaller and faster.
FossilOrigin-Name: afac0709cec577a7851e3711730712cf12eeb6af
2016-09-23 20:59:31 +00:00
drh
8dd099bbaa
New test case for the ORDER BY LIMIT optimization.
...
FossilOrigin-Name: 9a5a489d0d344274d0fc9fb9303503a454f42844
2016-09-23 18:13:01 +00:00
drh
28f17017ee
Fix a potential null-pointer dereference and crash in the case where one
...
thread is calling sqlite3_column_text() and another thread is calling
sqlite3_step() on the same prepared statement at the same instant.
FossilOrigin-Name: ee1382a36303eff8d94275ac3b12e5ce398ee620
2016-09-22 21:37:18 +00:00
drh
511f9e8d29
Remove the internal sqlite3CodeOnce() interface, replacing it with a
...
direct call to sqlite3VdbeAddOp0(v,OP_Once). Slightly smaller and faster.
FossilOrigin-Name: c3774c6a5fe48af91fda28e9e18c6ed9053ea992
2016-09-22 18:53:13 +00:00
mistachkin
5a0da94302
Makefile changes to support building winsqlite3.dll using STDCALL rather than CDECL.
...
FossilOrigin-Name: 5e892d60935e5c82234d1bfaef4c5026061acceb
2016-09-22 18:46:38 +00:00
drh
98ef26b0d4
Fix speedtest1.c so that it works with SQLITE_OMIT_DEPRECATED.
...
Add the --lean and --cachesize options to speed-check.sh.
FossilOrigin-Name: 7785b3a25778cc19861c01f4148f72e0f724f55d
2016-09-21 23:58:49 +00:00
dan
49377a8fb7
Fix a problem with the fts5 auxiliary function API causing a crash when a query contained a phrase of zero terms.
...
FossilOrigin-Name: 0741812d7fcd558479e4849fbb3ba8d03738d018
2016-09-21 19:43:34 +00:00
dan
30f8c23657
Do not run vacuummem.test if ENABLE_MEMORY_MANAGEMENT is defined.
...
FossilOrigin-Name: 4a613d856433ac48e8ee0cd7f0e774e484e8acf6
2016-09-21 19:00:37 +00:00
drh
fb04a36c20
Fix obsolete requirements marks. Add new tests for VACUUM of attached
...
databases.
FossilOrigin-Name: 2b44f9aa7d4e2089dacd6bfcf526dae9309b7af3
2016-09-21 18:18:57 +00:00
dan
b6ea12cc05
Avoid running vacuum5.test in auto-vacuum mode.
...
FossilOrigin-Name: be184befa09ef0a670a2a6d9c037b9a27bcf16d8
2016-09-21 17:53:47 +00:00
dan
b390681622
Do not run test "delete_db.test" with either the journaltest or inmemoryjournal permutations. Ensure that the multiplexor tests in delete_db.test are performed in non-autovacuum mode.
...
FossilOrigin-Name: 46b7d19e0282ecd7622344aafad8c2feb83c9658
2016-09-21 17:47:59 +00:00
dan
48a72ebfa3
Update the fts5vocab table to handle "ORDER BY term" efficiently.
...
FossilOrigin-Name: d4928fb5cd63a72808f01778fa5a11395385dedf
2016-09-21 14:41:09 +00:00
drh
09952c6490
Improved implementation of 64-bit signed integer multiply that correctly
...
detects overflow (and promotes to floating-point) in some corner cases.
Fix for ticket [1ec41379c9c1e400]
FossilOrigin-Name: db3ebd7c52cfc5fcc7be00f52e9d7c84719f7b93
2016-09-20 22:04:05 +00:00
mistachkin
d8992cef36
Fix harmless compiler warning.
...
FossilOrigin-Name: 72429063956614975d90cae2a829cfa4296694da
2016-09-20 17:49:01 +00:00
mistachkin
e0736da15a
Fix typo in comment.
...
FossilOrigin-Name: bd3ecbb5c1977744321f4bbac79fd7e2e7c1b5ba
2016-09-20 17:38:27 +00:00
drh
ff535a2499
Further performance enhancements in zeroblob() handling.
...
FossilOrigin-Name: 21b0e3b75c531a5ce33a1503f9bf647d56f56a5b
2016-09-20 01:46:15 +00:00
drh
8aaf7bcc8d
Avoid unnecessary calls to ExpandBlob() for smaller and faster code.
...
FossilOrigin-Name: 5e196fd18169e84806cd45dd1a8190339323e772
2016-09-20 01:19:18 +00:00
drh
fadd2b1972
Very small optimization in the bytecode engine.
...
FossilOrigin-Name: 46002511e52518bae14f210157f231c814c77c9e
2016-09-19 23:39:34 +00:00
drh
9a2e5169a4
Fix a segfault introduced by the row-value enhancement that comes up on
...
a skip-scan where the first term of the index is unconstrained and the
second term is of the form "columm IN (SELECT...)".
FossilOrigin-Name: 2401ea5acfeee8042489d1db38036ff86e8a6916
2016-09-19 11:00:42 +00:00
drh
c332cc30d9
Improved performance in sqlite3ExprCodeTarget().
...
FossilOrigin-Name: 75146165dcc1ae1faab46b1a7333ef795d5eeac5
2016-09-19 10:24:19 +00:00
drh
d43075bcaf
Small performance optimization in the expression walker.
...
FossilOrigin-Name: c6e6afb9391704d9119335f2ce17df3968acb514
2016-09-19 02:19:00 +00:00
drh
9e5eb9c8cc
Revise the implementation of OP_Once so that it is smaller, faster, and uses
...
less memory. This also fixes an obscure bug introduced 3 days ago by check-in
[5990a1bdb4a073].
FossilOrigin-Name: 6bf5ba10d28f1b0a32aa9a560ae3143a1235eadb
2016-09-18 16:08:10 +00:00