Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
pcache1.c
427e007
Use AtomicRead() and AtomicWrite() to access the pcache1_g.bUnderPressure
by drh
· 5 months ago
ef86b94
Code changes that make it easier to prove that no 32-bit integer overflows
by drh
· 5 months ago
a592883
Add extra assert() statements to the fixes on this branch.
by dan
· 1 year ago
alignment-fixes
7acf972
Fixes for platforms with 32-bit pointers that require 64-bit values to be aligned.
by dan
· 1 year ago
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
b53e099
Enhance an assert() to impose for tighter constraints on the operation of pcache.
by drh
· 2 years, 11 months ago
8c983dd
An improved technique for ensuring that the Rekey() operation does not
by drh
· 2 years, 11 months ago
4e9bf5a
Enhance the pcache1 implementation so that during an xRekey operation if
by drh
· 2 years, 11 months ago
9c3a114
Enhance the b-tree page sorting code to ensure that sqlite3PagerRekey() never
by drh
· 2 years, 11 months ago
78d15f0
Improved comments in pcache1.c. No changes to code.
by drh
· 2 years, 11 months ago
c8e9f68
Omit the (undocumented) SQLITE_PCACHE_SEPARATE_HEADER compile-time option.
by drh
· 3 years ago
f9d349a
Fix a compiler warning in pcache1. Reduce the maximum size of a pcache1
by drh
· 4 years ago
8a72882
Ensure that the pcache1 cache size does not get so big that it overflows
by drh
· 4 years ago
1e06c70
Initialize extra field in PgHdr1 to fix an msan complaint.
by dan
· 4 years, 5 months ago
0f1fa5d
Patch to the page cache to avoid harmless pointer arithmetic that due to bugs
by drh
· 6 years ago
55f66b3
Add new assert() statements in an attempt to help static analyzers avoid
by drh
· 6 years ago
a082cd7
Fix a race condition that could occur in SQLITE_ENABLE_MEMORY_MANAGEMENT builds when two threads simultaneously open the first two database connections in the process.
by dan
· 6 years ago
d4de9f7
Fix an obsolete comment and other minor issues from code inspection.
by drh
· 6 years ago
e385d33
Ensure all bytes of the PgHdr1 structure are initialized. This avoids a valgrind error when running corruptI.test.
by dan
· 6 years ago
1757fed
Adjustments to the page cache to try to avoid harmless TSAN warnings.
by drh
· 7 years ago
d7a5e49
Back out the expansion of the temporary buffer size from
by drh
· 7 years ago
d6401e8
Expand the size of the temporary page used during btree rebalancing by a
by drh
· 7 years ago
de72d2a
Remove two lines of unnecessary code, for a very small performance increase
by drh
· 7 years ago
26505e5
Follow-up to [0bf0fd242b93c3bd30]: only reset the pager when adding a
by drh
· 7 years ago
617b7b4
Small performance optimization in pcache1.
by drh
· 8 years ago
52df6f5
Avoid unnecessary mutexes in the pcache1 implementation in the common case
by drh
· 8 years ago
eabb67f
Microoptimization in pcache1.c makes the code slightly smaller and faster.
by drh
· 8 years ago
4eb8d7f
Slightly smaller and faster implementation of pcache1InitBulk().
by drh
· 8 years ago
bf96228
Fix the sqlite3_release_memory() interface so that it works even if
by drh
· 8 years ago
989412a
Take care to avoid integer overflow when doing the initial page cache
by drh
· 9 years ago
f5dbe7f
Tweaks to pcache1TruncateUnsafe() to make it slightly smaller and faster and
by drh
· 9 years ago
d9fabbc
Fix pcache1TruncateUnsafe() run faster for the case where iLimit is
by drh
· 9 years ago
97a7e5e
The pcache and the built-in VFSes should not use mutexes when
by drh
· 9 years ago
9493caf
Fix harmless compiler warnings that arise with -DSQLITE_OMIT_LOAD_EXTENSION
by drh
· 9 years ago
8b0ba7b
Make greater use of the SQLITE_WITHIN macro.
by drh
· 10 years ago
a6082f6
The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, and
by drh
· 10 years ago
b02392e
Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only the
by drh
· 10 years ago
8faee87
Fix compiler warnings.
by drh
· 10 years ago
0b19c96
Fix a potential NULL pointer deref in the testing logic of pcache1.
by drh
· 10 years ago
8820250
Fix a possible NULL pointer deref when using SQLITE_ENABLE_MEMORY_MANAGEMENT.
by drh
· 10 years ago
92af02c
Simplification of the LRU list handling in pcache1.
by drh
· 10 years ago
95a0b37
Change the pcache module to keep track of the total number of references to
by drh
· 10 years ago
3c0c431
Reduce the number of calls to sqlite3BeginBenignMalloc().
by drh
· 10 years ago
0dfbe06
Fix typo in comment. No changes to code.
by drh
· 10 years ago
939d4bc
Fix harmless compiler warnings.
by drh
· 10 years ago
957026a
Defer the bulk pcache1 memory allocation until the first page allocation
by drh
· 10 years ago
7b341e6
Comment fix. No changes to code.
by drh
· 10 years ago
pcache-bulk-local
52d9f40
Do not do the bulk pcache1 allocations if SQLITE_CONFIG_PAGECACHE specifies
by drh
· 10 years ago
fd5ae96
No need to test sqlite3GlobalConfig.bCoreMutex when SQLITE_THREADSAFE==0.
by drh
· 10 years ago
c54357c
Simplify the page recycling condition in pcache1. Fix test cases to work
by drh
· 10 years ago
db7ae89
A unified cache is now only used for SQLITE_ENABLE_MEMORY_MANAGEMENT, or if
by drh
· 10 years ago
ee70a84
Enhance separate pcache1 to allocate a block of pages from heap on startup,
by drh
· 10 years ago
01c5c00
Preserve the number of requested PAGECACHE pages even if the memory pointer
by drh
· 10 years ago
95c91e1
Use tail recursion in pcache1Unpin() to get a small size reduction and
by drh
· 10 years ago
f5ed7ad
Fix harmless compiler warnings.
by drh
· 10 years ago
982215a
Avoid unnecessary mutex usage in pcache1, for a significant speedup.
by drh
· 10 years ago
faster-pcache1-fetch
55a46c9
Add a fast-path implementation of pcache1Fetch() for the common case of
by drh
· 10 years ago
b230a52
Minor performance optimization in pcache1.c.
by drh
· 10 years ago
af89fe6
Add the sqlite3_status64() interface. Make the new interface and the legacy
by drh
· 10 years ago
51dc84e
Make SQLITE_CONFIG_PCACHE_HDRSZ accurate (not an over-estimate) on 32-bit
by drh
· 11 years ago
37c057b
Round all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ up
by drh
· 11 years ago
def6889
Add the SQLITE_CONFIG_PCACHE_HDRSZ option for sqlite3_config().
by drh
· 11 years ago
5bd8af7
Fix a failing test case in index5.test. Also tweak the way cache memory is divided between read-only and dirty pages when using SQLITE_CONFIG_PAGECACHE to reduce IO in some cases.
by dan
· 11 years ago
60ec914
Fix typos in comments. No code changes.
by peter.d.reid
· 11 years ago
efbf044
Faster implementation of pcache1Fetch()
by drh
· 11 years ago
693e671
Fixes for various clang warnings.
by drh
· 11 years ago
5d56dd2
Enhance the pcache1PinPage() routine so that it called much less often and
by drh
· 12 years ago
2907030
Add some extra assert() statements to silence a few clang warnings.
by dan
· 12 years ago
f7b5496
Many small harmless comment changes. Removal of obsolete comments and
by drh
· 12 years ago
6809c96
Replace a few sqlite3_malloc()+memset() sequences with calls to sqlite3MallocZero().
by dan
· 13 years ago
4bd6952
Provide an (undocumented) compile-time option to disable the page cache
by drh
· 13 years ago
2cbd78b
Reduce the size of the MemPage object by about 32 bytes. Other structure
by drh
· 13 years ago
45d2930
Fix typos in commands. Combine the ExpandBlob and expandBlob macros into one.
by drh
· 14 years ago
a69085c
Change page quantities in pcache1.c to unsigned.
by drh
· 14 years ago
09419b4
Add the sqlite3_db_release_memory() interface and the shrink_memory pragma.
by drh
· 14 years ago
81ef0f9
Add a version number to the sqlite3_pcache_methods2 object. Other PCACHE2
by drh
· 14 years ago
experimental-pcache
e73c914
Minor changes needed to restore full branch test coverage.
by drh
· 14 years ago
e5c40b1
Update the API documentation for the new pcache2 interface. Change the
by drh
· 14 years ago
22e21ff
Experimental change to the pcache interface to allow page buffers to be allocated separately from their associated container structures.
by dan
· 14 years ago
b5126dd
Remove the SQLITE_PAGECACHE_BLOCKALLOC compilation option.
by dan
· 14 years ago
8115d5f
Simplifications to the SQLITE_PAGECACHE_BLOCKALLOC logic. Reduce the number
by drh
· 14 years ago
1b53d7d
Ifdef out routines in pcache1.c that are used only
by drh
· 14 years ago
d292570
Experimental change: If SQLITE_PAGECACHE_BLOCKALLOC is defined, instead of allocating pages one at a time, allocate blocks of between 15 and 63 pages in a single allocation.
by dan
· 14 years ago
9dde7cb
Fix a line in pcache1.c where a global data structure is accessed without using the GLOBAL() macro. This causes a subtle malfunction on test systems that use SQLITE_OMIT_WSD.
by dan
· 14 years ago
15ad92f
More mutexes around another sqlite3StatusAdd() call.
by drh
· 14 years ago
9bf3da8e
Add a mutex around an sqlite3StatusAdd() call to prevent the pagecount
by drh
· 14 years ago
25ca568
Rename the PCache1.mxPinned field to n90pct (since it is 90% of nMax) in order
by drh
· 14 years ago
1e4040a
Fix new compiler warnings in pcache1.c that were introduced by the recent
by drh
· 14 years ago
41692e9
Shave a few cycles so that performance is better than 3.7.4 in speed tests.
by drh
· 14 years ago
3a5676c
Comment improvements in pcache1.c. No changes to code.
by drh
· 15 years ago
40f9837
Do not use SQLITE_MUTEX_STATIC_MEM2 since it has been reused as STATIC_OPEN.
by drh
· 15 years ago
9f8cf9d
Here is a completely new implementation of the mutex-free-pcache. This
by drh
· 15 years ago
94e7bd5
Fix comments, including some documentation comments, in the page cache
by drh
· 15 years ago
b51d2fa
Further tests and changes to make the r-tree module more robust.
by dan
· 15 years ago
bd2aaf9
Fix some compiler warnings under MSVC.
by shaneh
· 15 years ago
50d1b5f
Remove unnecessary code from malloc.c. Enhance pcache1.c so that is tries
by drh
· 15 years ago
9d13f11
Comment enhancements and typo fixes in pcache1.c.
by drh
· 15 years ago
c8f503a
Fix the sqlite3_release_memory() interface so that it does not attempt
by drh
· 15 years ago
29dfbe3
Record the pcache allocation size statistics even for pcache overflow
by drh
· 15 years ago
558814f
Add some 'const' markers to static data that is really constant.
by dan
· 15 years ago
Next »