drh
dfcdc663f2
Remove an obsolete optimization in pcache that due to more recent changes
...
was recently making the code a little slower.
FossilOrigin-Name: c4e7e175eecfd79015f4fae99618dfce6baf97c21bf3c909ea535d4e12dcaaad
2017-09-01 12:57:33 +00:00
drh
f0dae6d0a2
Small size and performance improvement in pcacheManageDirtyList() by not
...
zeroing the PgHdr.pDirtyNext and PgHdr.pDirtyPrev pointers for PgHdr objects
that are not on the dirty list.
FossilOrigin-Name: 919863b14859d958d6c078097faae02070c7bd082e2814cf3f84bd84921e4419
2017-09-01 12:18:41 +00:00
drh
38688b0b1d
Clarify the documentation about "protected" versus "unprotected" sqlite3_value
...
objects. No changes to code.
FossilOrigin-Name: 4094a3410e05597d0adc740d161e0358a3041c5a4e73bde35b1e983594c6879a
2017-08-31 21:11:52 +00:00
dan
9c1cf3235c
Remove unnecessary "__declspec(dllexport)" qualifiers from generated file
...
shell.c.
FossilOrigin-Name: bcc20be5b290c563183e82a590cc1fdabadfb13475fd8f6b3d810365cea5d868
2017-08-30 13:21:17 +00:00
drh
617b7b42e3
Small performance optimization in pcache1.
...
FossilOrigin-Name: ffd437da9541f8a2792e3e07c0a43f388f856fdc211fe42755eb51bfa5995d9f
2017-08-30 04:44:59 +00:00
drh
52fb8e1945
Faster memory allocation from lookaside by not trying to keep track of the
...
number of outstanding allocations, and rather computing that value only
when requested.
FossilOrigin-Name: a06263f1efd2d45eac88b8d59e8fe8e458670fa3808c795feaa7f247fc36cbe9
2017-08-29 20:21:12 +00:00
drh
83bebddbd9
Add the --enable-update-limit option to the ./configure script.
...
FossilOrigin-Name: 64a8ae68381b7fbb29b659901ca7ce8d50510e4753758d5761f7e41539288cef
2017-08-28 17:00:12 +00:00
drh
52df6f5e5c
Avoid unnecessary mutexes in the pcache1 implementation in the common case
...
where no auxiliary page cache memory is configured.
FossilOrigin-Name: 1ba051e34d7512ab5e8fc969c1b5aaaf827b8e6493ba4235895257aca78b500f
2017-08-28 16:11:05 +00:00
drh
b2a0f75c06
Remove the rarely-used scratch memory allocator. This makes the code smaller,
...
faster, and easier to maintain. In place of the scratch allocator, add the
SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite
that large memory allocations should be avoided.
FossilOrigin-Name: 54b000246cfb5c7b8adb61a17357ef5a49adddde9e48e8937834d5ba0beb8a6b
2017-08-28 15:51:35 +00:00
drh
b3c4523c58
Backport changes to shell.c into shell.c.in.
...
FossilOrigin-Name: 2348045fbc3fc99e2b46095cc86db99815cd1f9254d30a3b72c2b15c02076a84
2017-08-28 14:33:27 +00:00
drh
20554381d9
Fix the ".dump", ".schema", and ".fullschema" commands of the command-line
...
shell so that they work even if PRAGMA empty_result_callbacks is enabled.
Fix for ticket [02f0f4c54f281].
FossilOrigin-Name: cf0d3715caac9149e65bb4802fd179d0952cfaf9add17ac243c6ca87cbd6e6b7
2017-08-28 11:12:57 +00:00
drh
f49759bf03
Fix a few over-length source code lines. No functional changes.
...
FossilOrigin-Name: 1783c54ce9dcb4b2c4f2a66f6d3315e646b71b54a8899fc32a7bf0f935a21f7f
2017-08-25 19:51:51 +00:00
drh
36494b8bc6
Size and performance optimization for sqlite3Init().
...
FossilOrigin-Name: 776d91284a891bec64d6f649ff17de898b6ac6f66dd3d2afccc394a012a40c7d
2017-08-25 15:43:34 +00:00
drh
83e8ca54d1
Small performance optimization in sqlite3WhereBegin().
...
FossilOrigin-Name: 39f708d1e286931365a8992dbe7f900108ff1dad146032a284ad1dec09b11e06
2017-08-25 13:34:18 +00:00
drh
6034846eb6
Convert a branch made unreachable by [59560d07] into an assert().
...
FossilOrigin-Name: 2738b8db3caa6ce48d27cb5749d27b79241e6f6682b694886f6ef663e5443583
2017-08-25 13:02:48 +00:00
drh
95b46c85e2
Improve the internal mechanism used to keep track of what kind of syncing
...
to do for WAL transaction commits and checkpoint operations.
Use the checkpoint-style of syncing to sync the header of a new
or restarted WAL file.
FossilOrigin-Name: e8d23afe8478e42779ec1dd602ca2d77d4f3c26c4d54f52112c5aaa928536538
2017-08-25 11:44:51 +00:00
dan
1c305122a2
Avoid returning duplicate rows in experimental pragmas "pragma_list",
...
"module_list" and "function_list".
FossilOrigin-Name: b79cc8dc88c8ae03daff1290fd650b2b0e6f673ec9d83be6a533a57172930190
2017-08-25 09:17:14 +00:00
drh
daaae7b9d1
Update the mechanism used to keep track of what kind of syncing to do for
...
WAL transaction commits and checkpoint operations. Use the checkpoint-style
of syncing to sync the header of a new or restarted WAL file.
FossilOrigin-Name: bf65dae8d4297c57ac63228ccf0100f9fabf2fb600438c9f2e10a29c4b118168
2017-08-25 01:14:43 +00:00
drh
9c6e07d2fa
Fix an incorrect hyperlink in a comment.
...
FossilOrigin-Name: 25292b9a4eb5efc7db551da0b3c9cfd7e79da1594ee14729de44090e188c2b2a
2017-08-24 20:54:42 +00:00
drh
09e16491f6
Fixes to documentation about SQLITE_OPEN_URI.
...
FossilOrigin-Name: 7ec72314d6b66e4969833194fd032f01963bb861a7bb30d060acdb82dc5d62fe
2017-08-24 15:43:26 +00:00
drh
526740b1b9
Make sure the sqlite3_result_pointer() interface does not leave a VM register
...
in an inconsistent state. Fix for ticket [7486aa54b968e9b5]. Test cases
are in TH3.
FossilOrigin-Name: d2f9230c5c7ad6166e7d2b649f77960fa58b1cb583e529a43882753ab348413c
2017-08-24 13:55:46 +00:00
drh
87d63c900d
Performance optimization to pageFindSlot() in the b-tree layer.
...
FossilOrigin-Name: 59560d079fab4b91ec50855cc60349da178209c38fb6dae674ff874ccfc7f5fa
2017-08-23 23:09:03 +00:00
drh
5e398e4cbd
Size and performance optimization to dropCell() and freeSpace().
...
FossilOrigin-Name: bc1ec123ce05c9d16b0942f870381145dc9725764e47806939ff207a73066f4d
2017-08-23 20:36:06 +00:00
drh
5e27e1dc49
Smaller and faster implementation of the fillInCell() routine.
...
FossilOrigin-Name: 77074990edef6c42bdfe7ccce1affc8ed64a86dde3ad4fa50b60ba0a6d851eea
2017-08-23 14:45:59 +00:00
drh
489a224bea
Update documentation to make it clear that SQLITE_SOURCE_ID and
...
sqlite3_sourceid() might changes if the source code is edited.
FossilOrigin-Name: e69c0c8770d3cc2fcdc779c6290caf1575644d457326caa00327b9070251d620
2017-08-22 21:23:02 +00:00
drh
0a02c72e79
Less dramatic changes to the source-id following an edit. Modify the way
...
that the amalgamation is constructed to give it the opportunity to detect
changes and modify the source-id.
FossilOrigin-Name: 564c7340a3368501c3da885afde52123ed7f558801f6190cbe6173dfe9704b70
2017-08-22 21:07:03 +00:00
drh
48b9a6dd6b
Modify the SQLITE_SOURCE_ID if the source code has changed in any way since
...
the previous check-in.
FossilOrigin-Name: 515d6a8377cc1dc76d2e78e242fe256cbeef1c1217ec35367648ddeeb17007ec
2017-08-22 19:54:34 +00:00
drh
c9aed7f891
Trying again to get out-of-tree builds to work correctly.
...
FossilOrigin-Name: a1b3337e949fc431e19a3d977d07a312bb253ab7fec6811c0221abd514985d55
2017-08-22 19:49:34 +00:00
drh
a172254742
Attempting to fix the source-id generator so that it works for out-of-tree
...
builds.
FossilOrigin-Name: 5a037ac2da7449be3e26c36910ac5d865d7e74d3c25af0a10578c1f92fe2afea
2017-08-22 19:43:41 +00:00
drh
f39e0ed4de
Add the "mksourceid" program to the build process. That program changes
...
the SQLITE_SOURCE_ID if the source tree has been modified in any way.
FossilOrigin-Name: d4c05e04f7e1325a3260808ee17252876f678e78bf0cf6569a18a52ff674bd7a
2017-08-22 19:19:00 +00:00
drh
2e2338101a
Fix error tests in seldom-used compile-time branches of the unix backend.
...
FossilOrigin-Name: 885c2b44a44f8d054014e4079b2cac8279c11d13206d5b5215189ef75b9c5254
2017-08-22 15:21:54 +00:00
drh
b40f06c62d
Remove an unnecessary conditional.
...
FossilOrigin-Name: 56d19f9fd7b01d4ed5c3e7309977b43fedffee168c9760d3e3b7e885790f781e
2017-08-21 02:20:57 +00:00
drh
b32c18bf42
Minor optimization to sqlite3VdbeMemSetStr().
...
FossilOrigin-Name: 6538ef7b6b56c7a6629a0bb7418910c64c8b2e73af2296a116c073ecf2e0d429
2017-08-21 02:05:22 +00:00
drh
c84ddf14c5
Space and size optimization to the printf implementation.
...
FossilOrigin-Name: d01d2cffefd1cdb52b386e4983599534c0fbbe6aebda186db53200e4b2283f0a
2017-08-19 20:38:18 +00:00
drh
251866d07c
Another size and performance optimization to readDbPage(). This time we
...
eliminate some unnecessary local variables.
FossilOrigin-Name: 745bc8decd18d4dc00589474fd3928a3a9f4156d09e05e6f5b8623de6491795a
2017-08-18 22:30:20 +00:00
drh
56520ab848
Size and performance optimization the readDbPage() routine in the pager.
...
FossilOrigin-Name: ca9e1875c3a893321d70a131fc4ffc76d169ad05e0b48b7006f53b6b467db4be
2017-08-18 21:14:50 +00:00
drh
c68886bb9e
For the unix VFS, avoid an unnecessary stat() system call prior to opening
...
any file in the common case where there are no unused file descriptors.
FossilOrigin-Name: 3075cfa07489eaf13cb9a2760e2391e79dd73181fe1730fae7bdcd6ad66d2a1f
2017-08-18 16:09:52 +00:00
drh
0f3f7664f0
Combine the OP_CreateTable and OP_CreateIndex opcodes of the bytecode engine
...
into a single OP_CreateBtree opcode. This simplifies the implementation and
makes the bytecode programs clearer.
FossilOrigin-Name: eb1202b5e43f1f029ad2bdf845509e7f31361e4dc189943e5e2bd4462e2ef3f3
2017-08-18 14:34:28 +00:00
dan
62f6f51ae1
Only use indexes on expressions to optimize ORDER BY and GROUP BY if the
...
collation sequence matches. Possible fix for [e20dd54a].
FossilOrigin-Name: 37e1900880b70be6802eaf43b0e568fda709a1dd6083d8be11e5a7a7d1fda41a
2017-08-18 08:29:37 +00:00
drh
ceb4b1dbdd
Use the __builtin_clzll() function of gcc to improve the performance and
...
reduce the size of the sqlite3LogEst() routine.
FossilOrigin-Name: a42a438cbbd721765ca55e71c464552dbaa494050cf472593599b8c7f0249516
2017-08-17 20:53:07 +00:00
drh
dceed86d07
Small optimization in the Expr tree walker.
...
FossilOrigin-Name: 264a5e1b75ee073bd019483e289c3d8d79abcf5a765435be23ac3c21b1db8246
2017-08-17 19:23:16 +00:00
drh
6f7fbcf0bb
Size optimization in the authorizer error message generation logic.
...
FossilOrigin-Name: 0367a4d58682a64d7ed4c5a4b4377899e22432851587c649d419efb6d7bac250
2017-08-17 18:54:27 +00:00
drh
efaffb64fd
In sqlite3ViewGetColumnNames(), return the number of errors, not an error code.
...
FossilOrigin-Name: f13682ea2350ba366026a4a58e59591af378c496b92da60803c4c642c3bfc8de
2017-08-17 18:23:46 +00:00
drh
6362bbe68d
The RTREE extension should return SQLITE_CORRUPT_VTAB, not just SQLITE_CORRUPT
...
when it encounters incorrectly formatted shadow tables.
FossilOrigin-Name: 0712f057ef3dcd907984dda30f6d961a29b61c1d2b25627028c4e227ec85dbba
2017-08-17 18:17:24 +00:00
drh
967f8f9e07
Remove an unnecessary branch from the [be436a7f4587ce517ddc] fix.
...
FossilOrigin-Name: fb6ca99b88c67414eab425e2b4ddb6a5e2fd48a6b2cd96a34627c86a5b568c9b
2017-08-17 14:47:56 +00:00
dan
865c3c58ab
Add test cases for ticket [be436a7f4587ce517] using virtual table modules fts5
...
and rtree.
FossilOrigin-Name: 2101b4208787d297788e05f2bd82d4a9aff26e2237a7016ac857a52fb5252ce0
2017-08-17 14:12:16 +00:00
drh
dc6b41ed47
Defer schema resets when the query planner is running.
...
Proposed fix for ticket [be436a7f4587ce517].
FossilOrigin-Name: a7bc7752ba0266684f5317e424a4ee9add4af002272082183519e708ab9ffc79
2017-08-17 02:26:35 +00:00
drh
fe0cf7a18c
Avoid a test for CURTYPE_BTREE in sqlite3VdbeCursorMoveto() in order to reduce
...
the size and improve the performance of OP_Column.
FossilOrigin-Name: f078deb25149b7b1881b7f3374b343d0677e82336d8fdd7f1cdd06d926b5dd57
2017-08-16 19:20:20 +00:00
drh
1f613c4df3
Remove an unnecessary local variable from OP_Column, for a small size
...
reduction and performance increase.
FossilOrigin-Name: 39543903282409ad3f139f8a0bb376661e7595a33af4f647945b1513a028ccb4
2017-08-16 14:16:19 +00:00
drh
95b225a46d
Performance improvement in the OP_Column opcode.
...
FossilOrigin-Name: dc98a92f32511ee322b0207bd286e967248a8e59b418f11168eb31e34b0fa0fa
2017-08-16 11:04:22 +00:00