Commit Graph

5416 Commits

Author SHA1 Message Date
danielk1977 808ec7c0c7 Speed up OP_Column by eliminating some double handling. (CVS 5490)
FossilOrigin-Name: 9ebee8401b68a2bcd49dc750ac394258d554b499
2008-07-29 10:18:57 +00:00
shess b5f94870c2 Re-used prepared statement from fts3 cursor. Previously, each call to
fulltextFilter() finalized any existing prepared statement and
prepared a new one.  In the case where idxNum has not changed, simply
reseting the statement suffices.  This provides an order of magnitude
speedup in incoming joins against docid. (CVS 5489)

FossilOrigin-Name: a08a5f2b1256b8a93beca5a359ccfc28d403efa3
2008-07-29 01:13:02 +00:00
drh 633e6d57d9 Implement the "lookaside" memory allocation cache. Use of this cache makes
the speed1.test script run about 15% faster.  Added new interfaces to
control the cache. (CVS 5488)

FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
2008-07-28 19:34:53 +00:00
danielk1977 78bd9ca86f Add mem6.c to Makefile.in. Ticket #3253. (CVS 5487)
FossilOrigin-Name: 51be2e4463ca32f290feb610f59553b55bc67a5c
2008-07-28 05:26:32 +00:00
danielk1977 95c232dc0c In the documentation for SQLITE_CONFIG_MEMSTATUS, make it clear that the 'boolean' argument passed to sqlite3_config() is actually of type int. Ticket #3252. (CVS 5486)
FossilOrigin-Name: 1ffdd46f0bf5c82c652dedf74660e913b5699b18
2008-07-28 05:22:35 +00:00
danielk1977 ced38bdfbb Remove a branch that could not be taken from OP_IsUnique. (CVS 5485)
FossilOrigin-Name: 75c2a532f4dfd7eee5136fbb79f8e20dbc666fad
2008-07-26 18:47:27 +00:00
danielk1977 161546c7e5 Fix a case where database corruption was causing an invalid reference. (CVS 5484)
FossilOrigin-Name: 7aecabacf924ad8c1f9f4e707d0c56e433e3a434
2008-07-26 18:26:10 +00:00
drh 66cccd9b24 Add an SQLITE_OMIT_LOCALTIME around the "utc" modifier in date/time functions. (CVS 5483)
FossilOrigin-Name: 71486e93b274b7ca954314dd3e4146192a8b6d79
2008-07-25 16:39:24 +00:00
danielk1977 7c4185e2f1 Further performance improvements to mem6.c. (CVS 5482)
FossilOrigin-Name: 4528f7b1cce2d009f1bf32bfb8eeaf3ce5531f41
2008-07-25 16:07:00 +00:00
drh ec424a5be6 Add the capability to track the maximum depth of the LALR(1) parser stack
so that critical applications can check to see if they are getting close
to limits. (CVS 5481)

FossilOrigin-Name: ef0250f3dc769a4acd534f31fa06d90922d4145b
2008-07-25 15:39:03 +00:00
drh 1bb14aca96 Fix the corrupt7 tests to track changes in the integrity check error message. (CVS 5480)
FossilOrigin-Name: 22177dac2e3cd9acafe7fcc71674a675fdd098ff
2008-07-25 14:53:17 +00:00
drh ebf1b467f7 Increase limits on memsubsys1 tests to accomodate the larger structure
sizes on 64-bit platforms. (CVS 5479)

FossilOrigin-Name: f7720f1bfcc6dcdd60002520e10f545a6f0eb126
2008-07-25 13:39:08 +00:00
drh 40f2c76720 Require the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture
with sqlite3_instvfs enabled.  This allows fulltest to run on platforms
for which we do not have a working hwtime.h (ex: ppc, s390).  Change
requested from the SuSE team. (CVS 5478)

FossilOrigin-Name: 16c164e79c2033347a36d6f7150eb8d2e0497c78
2008-07-25 13:32:44 +00:00
drh 0fcf237a8f Make the libtclsqlite3.la shared library depend on a separate
libsqlite3.la shared library.  I think this flies in the face of the
whole SQLite philosophy of minimal dependencies, but on the other hand,
few people use that shared library and the capability has been requested
from the SuSE team. (CVS 5477)

FossilOrigin-Name: 83484b42bf353535567e245a92f40096b63b342f
2008-07-25 12:49:44 +00:00
drh a17378c3ac Fix a build problem on tclsqlite in Makefile.in. (CVS 5476)
FossilOrigin-Name: e7a604807f9f3f92920b2bac403d2dd368dfa102
2008-07-25 12:39:23 +00:00
danielk1977 da17af08fd Speed up the xFree() method of the mem6.c allocator by storing the offset from the pointer to the start of its chunk in a header field. (CVS 5475)
FossilOrigin-Name: 0de54891d4901dec929459d27004efe87106ffa2
2008-07-25 10:40:18 +00:00
danielk1977 9dc0d68241 Change mem6.c to use the malloc() and free() functions directly, instead of going via another sqlite3_mem_methods structure. (CVS 5474)
FossilOrigin-Name: cfa65e23df8b6f33884f533492b84dd1985db4d4
2008-07-25 09:24:13 +00:00
danielk1977 31fab4f30b Updates to mem6.c allocator. (CVS 5473)
FossilOrigin-Name: 43a4cae2acea33d1a17c0037516e9c27fb7e8e91
2008-07-25 08:48:59 +00:00
drh 2abcd58f09 Reduce the size of the parser allocation. Add additional instrumentation
to mem2.  speed1*.test uses scratch malloc. (CVS 5472)

FossilOrigin-Name: 599a9dea8fc97d0e7f09e67c9954de8cc1b8748e
2008-07-24 23:34:07 +00:00
drh 513c331df9 Use a new algorithm for sqlite3Strlen that is slightly slower but is more
like to work on a mixture of 32- and 64-bit systems.  Ticket #3237, #3248. (CVS 5471)

FossilOrigin-Name: cb1876d8dc102be74be98dd57ac14ee67be8e8e2
2008-07-24 17:06:48 +00:00
drh 7ce72f6950 Update the implementation of sqlite3ResultSetOfSelect() to (hopefully) make
it clearer that malloc failures cannot possibly result in a crash.
Ticket #3247. (CVS 5470)

FossilOrigin-Name: 7455310931787ddc72d677ba6c471b67af9418a8
2008-07-24 15:50:41 +00:00
danielk1977 fae8917633 Do not run capi3.test or capi3c.test when testing memsys6. (CVS 5469)
FossilOrigin-Name: e0a101117ca44f0cce555b5db667286729fd2ad4
2008-07-24 10:32:30 +00:00
danielk1977 8969718379 Add a mutex to mem6.c to make it threadsafe. (CVS 5468)
FossilOrigin-Name: 9b97ce60c63c8b8afa43496a97917afd5fc26c71
2008-07-24 10:11:27 +00:00
danielk1977 2d34081de9 Add mem6.c, a new allocator. More to come. (CVS 5467)
FossilOrigin-Name: 192bc192185a7b475ef9331e2a4a0dc68083ec03
2008-07-24 08:20:40 +00:00
drh 80cc85b3c2 Error messages from virtual tables store on the sqlite3_vtab->zErrMsg field
are reported back up to the application interface and memory is reclaimed. (CVS 5466)

FossilOrigin-Name: 4a9dd5e782a363e93d4705fa3671bc6cf0bb5a33
2008-07-23 21:07:25 +00:00
drh 9a1ec1e3ae Remove stray breakpoints from test scripts. (CVS 5465)
FossilOrigin-Name: cb5e75dfa5c7048bd0994afac19846f70bfa7a4d
2008-07-23 20:28:13 +00:00
drh 74f7eb18b9 Clarify in the documentation that the database connection pointer to
sqlite3_next_stmt() must not be NULL.  Ticket #3244. (CVS 5464)

FossilOrigin-Name: a7d64e86e84cf16c9742e6b012a0b96d9c6b2ba1
2008-07-23 18:25:56 +00:00
drh 4dc754d96d Read the sqlite3_vtab.zErrMsg after each call to a virtual table
method and transfer any error into the database connection.
Fix the fts2.test and fts3.test scripts to that they return
silently rather than failing the test sequence if the appropriate
FTS implementation is unavailable. (CVS 5463)

FossilOrigin-Name: e2c6771d44f1b4fee16ef90e91c3498be2a7d2b1
2008-07-23 18:17:32 +00:00
drh b25f9d84cd Update requirements derivation information in sqlite.h.in. (CVS 5462)
FossilOrigin-Name: d6202907e70d902e967ba116012c274154f30b8d
2008-07-23 15:40:06 +00:00
mihailim 2a3d38dd86 Quick typo fix. No changes to code. (CVS 5461)
FossilOrigin-Name: dfa8b456630089d385f89c145ae709be85424cd7
2008-07-23 13:42:26 +00:00
drh 9cd2964e06 Documentation updates. (CVS 5460)
FossilOrigin-Name: fe8e9f53f4bcedf2e8a657f33eb9a0939ef74c95
2008-07-23 00:52:55 +00:00
shess 25192cac24 Be a bit more susicious of invalid results from the tokenizer.
Backports check-in (4514) from fts3. (CVS 5459)

FossilOrigin-Name: 311aeb9c2b75c420a37198a93e353c72e9166747
2008-07-22 23:54:50 +00:00
shess db94e39b07 Implement optimize() function.
Backports check-in (5417) from fts3. (CVS 5458)

FossilOrigin-Name: c16900dc7603cab30f8729b25361bc88bb37ae43
2008-07-22 23:49:44 +00:00
shess 08904673c8 Delete all fts2 index data the table becomes empty.
Backports check-in (5413) from fts3. (CVS 5457)

FossilOrigin-Name: 4c98179be258319f441ae4e123cf59af77e96409
2008-07-22 23:41:26 +00:00
shess 3d373110f0 fts2 functions for testing scripts.
Backports (5340) from fts3. (CVS 5456)

FossilOrigin-Name: 4e47394be9dfbf0f9309e55eb6c6a3a517ea2006
2008-07-22 23:32:27 +00:00
shess deca811cb5 Change prefix search from O(N*M) to O(NlogM).
Backports (4599) from fts3. (CVS 5455)

FossilOrigin-Name: 3f614453d2d7c753a5963b027fe8618b50b4f6b9
2008-07-22 23:08:40 +00:00
shess b2822a2b5e Changes fts2 to use only sqlite3_malloc() and not system malloc.
Backports (4554) and (4555) from fts3. (CVS 5454)

FossilOrigin-Name: ecf2dec66cb979cb7d8db3b7ce5c64cab57fe2bb
2008-07-22 22:57:54 +00:00
shess 29647900e2 fts2.c buildTerms() passes -1 for nInput.
Backports (4511) from fts3. (CVS 5453)

FossilOrigin-Name: d562515e1cdd05212674516033c64b5f5668b799
2008-07-22 22:20:50 +00:00
shess 4249b3f539 Cleanup the hash functions in FTS2.
Backports (4440) from fts3. (CVS 5452)

FossilOrigin-Name: e31d2f875c13ee41742c9aaee6291662cdbbf863
2008-07-22 22:15:47 +00:00
drh 9a24791576 Documentation updates. No changes to code. (CVS 5451)
FossilOrigin-Name: e58b49779bfd4a9e88e8c6b0a929c97167b718b3
2008-07-22 18:45:08 +00:00
shane 820800d0bf winGetLastError support added. Consolidated getLastErrorMsg() support. Removed some more WINCE dead code similar to instance in ticket #3232. Added error return on SystemTimeToFileTime() failure. (CVS 5450)
FossilOrigin-Name: c0a5cf38eea80640e42c612ce6f4850c98f70638
2008-07-22 05:32:03 +00:00
shane 0b8d276684 Changed a few loop counters to unsigned ints to remove compiler warnings. (CVS 5449)
FossilOrigin-Name: 16f51f9b39c46659b4be4afd7f0d8ec325469e7b
2008-07-22 05:18:00 +00:00
shane 791ea93f68 Added comment on floating point precision compile option for MSVC. (CVS 5448)
FossilOrigin-Name: e20f2b8c6a13aa826703441cf340d0ee03bf9f64
2008-07-22 05:15:52 +00:00
shane dfb7b37dc0 Add assertion check for NaN support at startup. (CVS 5447)
FossilOrigin-Name: 8474cde34b3fcb99cd5908fddb8528d0db331cdf
2008-07-22 05:13:30 +00:00
shane fbededef48 "configure" support updated. Removed unused features. Added parsing of CFLAGS and CPPFLAGS to extract OMIT options to pass to lemon and mkkeywordhash. (CVS 5446)
FossilOrigin-Name: c67aa5057deda6419e1f205118bf09957d599c15
2008-07-22 05:05:01 +00:00
shane 3514b6f759 flattenSubquery() needed if either SQLITE_OMIT_SUBQUERY or SQLITE_OMIT_VIEW not defined. (CVS 5445)
FossilOrigin-Name: 1ffe7a995733fe91534a3ed81d2640fd7e6ebaa6
2008-07-22 05:00:55 +00:00
danielk1977 85d90ca7a7 Reduce the number of "#ifndef SQLITE_OMIT_AUTOVACUUM" conditions in btree.c by using the ISAUTOVACUUM macro instead. (CVS 5444)
FossilOrigin-Name: a560c61849cb669ab03ba4a63b23369db234f329
2008-07-19 14:25:15 +00:00
danielk1977 b27475ba75 To ensure SQLITE_THREADSAFE is always defined, have test_mutex.c include sqliteInt.h. (CVS 5443)
FossilOrigin-Name: d8be91e2d2737dcb0e82e6c8a6a3f4827bc98d63
2008-07-19 13:43:23 +00:00
danielk1977 87c52b58f0 Improve the performance of balance_nonroot() on auto-vacuum databases by reducing the number of calls to ptrmapPut(). (CVS 5442)
FossilOrigin-Name: 9992b1aecdbbc7a260f00cb6ef78b500aeab22df
2008-07-19 11:49:07 +00:00
drh 78e772424d Remove dead code from os_win.c. Ticket #3232. (CVS 5441)
FossilOrigin-Name: 5c5c1f72797e4ceb229b8e3a7c65e5f173bb9e1a
2008-07-18 23:47:43 +00:00