aboutsummaryrefslogtreecommitdiff
path: root/src/pcache.c
Commit message (Collapse)AuthorAge
...
* Remove an unused preprocessor macro from pcache.c.drh2015-01-09
| | | FossilOrigin-Name: 88a7a967116a48aeb5fa7014613c0134b1b47bb3
* Make SQLITE_CONFIG_PCACHE_HDRSZ accurate (not an over-estimate) on 32-bitdrh2014-12-30
| | | | | systems. FossilOrigin-Name: 340b347758e570db3e739b56af0dcf3fc34525be
* Round all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ updrh2014-12-30
| | | | | to a multiple of 8 bytes. FossilOrigin-Name: b28ce75f2d3a6343dc20d581dc55afae89ab5efa
* Add the SQLITE_CONFIG_PCACHE_HDRSZ option for sqlite3_config().drh2014-11-04
| | | FossilOrigin-Name: 6eb03e62a34e8e0964175283587247b0212db604
* Remove the EXPENSIVE_ASSERTS in pcache.c having to do with the pSynced fielddrh2014-09-15
| | | | | | of the Pcache object, as they are incorrect, as revealed by recent pcache enhancements. FossilOrigin-Name: 69a64560777f85b47349b4b2aab01dc99298592e
* Small performance improvement to the dirty list handling in the pager.drh2014-09-12
| | | FossilOrigin-Name: b332a84d5154f70f3197537df4af243eaebbb011
* Fix typos in comments. No code changes.peter.d.reid2014-09-06
| | | FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
* Refactor the sqlite3PcacheFetch() routine into three separate routines,drh2014-08-27
| | | | | | which are significantly faster overall and about 100 bytes smaller in size as well. FossilOrigin-Name: bdb6e4978d1a26d5f795262172605184264ede9c
* Change the page cache so that a new sqlite3_pcache object is allocated asdrh2014-08-26
| | | | | | | soon as the page cache is opened, not delayed until the first fetch request. This give a noticable performance boost. The interface between pager and the page cache has changed slightly, which might break ZIPVFS. FossilOrigin-Name: f1f94a971e031e784f8c30a6faf829df58709329
* Combine the pcacheAddToDirtyList() and pcacheRemoveFromDirtyList() routinesdrh2014-08-22
| | | | | | into a single pcacheManageDirtyList() routine. The resulting binary code is slightly faster and a few bytes smaller. FossilOrigin-Name: 6bcf1af6a48dbda5ac6f6b3b02810bdfc4730000
* Performance optimizations in sqlite3PcacheFetch().drh2014-02-03
| | | FossilOrigin-Name: b60cc11ef775c23a2245d9e7a00dab34013f3ccb
* Make sure large negative arguments to PRAGMA cache_size do not causedrh2012-01-02
| | | | | 32-bit signed integer overflow. Also correct a requirements mark. FossilOrigin-Name: 17c30634a71051158f8d37fd51b3c2a125ad8bd2
* Add the sqlite3_db_release_memory() interface and the shrink_memory pragma.drh2011-11-16
| | | FossilOrigin-Name: 3f58e7c8895d1252eff56282c08b1a6f1194452c
* A negative value N for the cache_size pragma adjusts the number of cachedrh2011-11-09
| | | | | pages to use approximately N kibibytes of memory. FossilOrigin-Name: b3faa680aedc94ed8aa2819228c0d304b181cc51
* Update the API documentation for the new pcache2 interface. Change thedrh2011-11-09
| | | | | order of parameters on the xCreate method of pcache2. FossilOrigin-Name: 4da7095683ec821414e255419d63a24dbd9d726d
* Experimental change to the pcache interface to allow page buffers to be ↵dan2011-11-08
| | | | | allocated separately from their associated container structures. FossilOrigin-Name: c275c9d323cb1dccb031b199d413ac3a0b244fea
* Print a log message on each cache spill if compiled withdrh2011-05-28
| | | | | SQLITE_LOG_CACHE_SPILL. FossilOrigin-Name: 5f15579f8ca747f0fa0a7867ceffc8c7b8f904e6
* Further updates to the sqlite3_pcache_methods documentation, plus the additiondrh2010-09-09
| | | | | of a few evidence marks related to pcache. FossilOrigin-Name: 34edb54bb03ad4e54f2e4de12d767e6fa8822ba4
* Store the MemPage structure in memory following, instead of preceding, the ↵dan2010-06-10
| | | | | page data for cached pages. This reduces the likelihood of a corrupt database page image causing SQLite to read past the end of a buffer. FossilOrigin-Name: 0ce42e76654d9ba52dac74c940d38b17866016ba
* Put an ALWAYS() around a condition in pcache.c that must always be true indrh2010-03-19
| | | | | the current implementation. FossilOrigin-Name: 88810cd091b33f2c56f842e32cafbac5d34d7412
* When TEMP files are in memory, also put the massive TEMP file used bydrh2010-03-02
| | | | | the VACUUM command in memory. FossilOrigin-Name: 9daf4e7d07769f25b3a579d80e7fada4e52344b1
* Fix a performance glitch that appears for large transactions.drh2010-02-04
| | | FossilOrigin-Name: 26cb1df73504d5d883cf0967e57b46aa062d0b00
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* Add files that should have gone in with the previous checkin. (CVS 6935)danielk19772009-07-25
| | | FossilOrigin-Name: 64c7afc704e95e13fb3315be402525d277a0d8d8
* Change getAndInitPage() (btree.c) to use only PagerAcquire(), not ↵danielk19772009-07-21
| | | | | PagerLookup() and PagerAcquire(). (CVS 6916) FossilOrigin-Name: 0b41dfc066b60ccabbf1a9ab4db41ebcb73a2799
* Code simplifications and comment improvements in support of structuraldrh2009-07-16
| | | | | coverage testing. (CVS 6899) FossilOrigin-Name: 945251798144110787b197f9eb552a2dd4a25cb4
* Remove two unused lines from pcache.c. (CVS 6415)drh2009-03-31
| | | FossilOrigin-Name: d5cab05c9ecbc5cb5e9ed658a55c35434717e969
* Optimization: When loading a new page into the cache, avoid redundant ↵danielk19772009-01-23
| | | | | memset() calls to zero it. (CVS 6201) FossilOrigin-Name: 9c0b9f881367871105965d4268e2f2cde7f4d884
* Big change to make pager.c easier to follow. Unused variables removed, ↵danielk19772009-01-20
| | | | | comments improved, etc. (CVS 6197) FossilOrigin-Name: 12f7346c13c180ed73d7a2e3b590be457360254a
* Revert (6187). (CVS 6188)danielk19772009-01-16
| | | FossilOrigin-Name: a353c1ab376b159c4d12532412365318cdbdcc60
* This commit is an error. Reverted by (6188). (CVS 6187)danielk19772009-01-16
| | | FossilOrigin-Name: aa67fd0cdb4f53a0c6e15c001d37554d15006718
* Replace the VDBE Fifo object with the new RowSet object. (CVS 5977)drh2008-12-04
| | | FossilOrigin-Name: 39a0750b49cf55e9c0927169ca47db909f5c16ea
* Fix some compiler warnings that show up when building the amalgamation only. ↵danielk19772008-11-19
| | | | | (CVS 5927) FossilOrigin-Name: d1abe8a1c9a990b02c71d6c249436381c9fde443
* Add an API to support custom page cache implementations. (CVS 5899)danielk19772008-11-13
| | | FossilOrigin-Name: 47866d6708e9b69e367937fd85f93580fd025447
* Remove some asserts that refer to variables removed in (5830). (CVS 5884)danielk19772008-11-11
| | | FossilOrigin-Name: 9d880a6fd244fb73d0fce7e8180177c54d95cde2
* When an assignment occurs in a boolean, always test the result using "!=0"drh2008-11-11
| | | | | | to avoid confusion and make it clear that assignment is intended, not an equality test. Ticket #3491. (CVS 5879) FossilOrigin-Name: 89ee5295bdea6f2c093eb6a44d69917dcc8459e3
* Add "pragma journal_mode=memory". Change the way rollback works for ↵danielk19772008-10-17
| | | | | in-memory databases so that it reuses the journal_mode=memory code. (CVS 5830) FossilOrigin-Name: 39ebf01addf9d0867daafd06a38719e725128f9c
* Instead of storing a pointer to the parent page in the MemPage structure, ↵danielk19772008-09-29
| | | | | have each B-Tree cursor keep track of the ancestry of the current page. (CVS 5747) FossilOrigin-Name: 40425e93421286cca1965d7a5769084526210c7a
* Fix some function declarations (change "int foo()" to "int foo(void)"). ↵danielk19772008-09-24
| | | | | Ticket #3399. (CVS 5740) FossilOrigin-Name: 0fb98c35353d8c0a8d669bbe45fe84e3a5060621
* Give file scope to non-API routines in pcache. Ticket #3392. (CVS 5727)drh2008-09-21
| | | FossilOrigin-Name: 6521f98ac3a5cd2d959a9672cd07b1d25b82d559
* Avoid parsing the structure of b-tree pages (in sqlite3BtreeInitPage) more ↵danielk19772008-09-18
| | | | | than is necessary. (CVS 5720) FossilOrigin-Name: 6b998f3066754e219c266501327e5578c9406b63
* Speed improvements for in-memory databases by omitting flag clearing on pagesdrh2008-09-17
| | | | | | where it is impossible for the flag to be set and by avoiding assert()s on non-debugging builds. Ticket #3384. (CVS 5715) FossilOrigin-Name: a7fd9e622bc1050e78f227ec42b6ba90c87c865a
* Add a type identifier to argument sz to sqlite3PageMalloc() in pcache.c. ↵danielk19772008-09-17
| | | | | Ticket #3383. (CVS 5713) FossilOrigin-Name: 94fde77b9a4efde5f7fb2a84fedaf38b0ebbac70
* Adjust the page recycling algorithm so that the number of pages allocateddrh2008-09-15
| | | | | to each connection does not exceed its cache_size limit. (CVS 5701) FossilOrigin-Name: 3bc221b940565133ae8d95f59b3b120e57df0124
* Modify pcache.c to work with OMIT_WSD. (CVS 5659)danielk19772008-09-02
| | | FossilOrigin-Name: 44def90d1bd4e37ab162e16f83e23d32e86b78ab
* Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD ↵danielk19772008-09-01
| | | | | variables still need wrappers added to them. (CVS 5652) FossilOrigin-Name: 573d92abb9adb1c321ebc2fcadcf14374213b093
* If a page is made eligible for recycling when more than the configured ↵danielk19772008-08-29
| | | | | maximum number of pages are allocated, free it immediately instead of adding it to the LRU list. (CVS 5638) FossilOrigin-Name: 4b12922dcb4547bf3a7276d0542b2e1d12ad338d
* Partial fix for a bug in recovery from xStress failures in pcache. (CVS 5635)drh2008-08-28
| | | FossilOrigin-Name: 44193b92770062271711570d8532fa5af5f5da54
* Fix mutex related bug in pcache.c to do with handling IO errors. (CVS 5632)danielk19772008-08-28
| | | FossilOrigin-Name: 5e304fed275137f98be56f475504422d1f5113a4
* Enable the disabled asserts added by (5629). Add extra tests to ↵danielk19772008-08-28
| | | | | thread003.test. And the required modifications to pcache.c. (CVS 5631) FossilOrigin-Name: 473c09fac22ed2f56ea86150a60b9f0f2263c889