From: drh Date: Wed, 8 Jul 2015 16:22:42 +0000 (+0000) Subject: Enhance the pcache1 page cache so that it tries to allocate a block of X-Git-Tag: version-3.8.11~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=104a25a034215ea87d33e590d70e4e8e399cef26;p=thirdparty%2Fsqlite.git Enhance the pcache1 page cache so that it tries to allocate a block of SQLITE_DEFAULT_PCACHE_INITSZ pages from malloc() on startup, and uses those preallocated pages when possible rather than going to malloc() for each individual page. About a 5% performance increase for some workloads. FossilOrigin-Name: 5348ffc3fda5168c1e9e14aa88b0c6aedbda7c94 --- 104a25a034215ea87d33e590d70e4e8e399cef26 diff --cc manifest index b76060a668,4fa0ddf103..8742d04df9 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Early\sdetection\sof\sfile\scorruption\sin\sa\sdebugging\sroutine,\sbefore\sthe\sinvalid\ndata\scan\scause\sproblems. - D 2015-07-08T12:25:38.106 -C Comment\sfix.\s\sNo\schanges\sto\scode. -D 2015-07-08T14:13:44.573 ++C Enhance\sthe\spcache1\spage\scache\sso\sthat\sit\stries\sto\sallocate\sa\sblock\sof\nSQLITE_DEFAULT_PCACHE_INITSZ\spages\sfrom\smalloc()\son\sstartup,\sand\suses\sthose\npreallocated\spages\swhen\spossible\srather\sthan\sgoing\sto\smalloc()\sfor\seach\nindividual\spage.\s\sAbout\sa\s5%\sperformance\sincrease\sfor\ssome\sworkloads. ++D 2015-07-08T16:22:42.453 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 017bf0511d1b2dd1db5e16488fbf75a17b526cbc F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@@ -1364,7 -1364,7 +1364,8 @@@ F tool/vdbe_profile.tcl 67746953071a9f8 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f - P 6ace73541ae48aeb19e0c2d9f6772d032d0a7eae - R 8adde983bcb4c45839c171b768ffd3b9 -P 75d98dae676996a05e97b09b19e34463e8f30d51 -R e0f37cdeba600c01a32ef205d5f6df52 ++P b27a47fef995f0ab2516e6ca779711cab1f50fb9 c1e2ed0ef4d3436d19d3203c5fb553caac53659e ++R 0716d0744f0e72c8cdadbca41133bc14 ++T +closed c1e2ed0ef4d3436d19d3203c5fb553caac53659e U drh - Z b9cf714cb314f182c61af66a54b1bb68 -Z cb924bafedede368f45cad3c12c2aa68 ++Z eea1350426d30f63377f69d37a46ee1a diff --cc manifest.uuid index 9b6013994f,fb850df2b9..a2762d1d63 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - b27a47fef995f0ab2516e6ca779711cab1f50fb9 -c1e2ed0ef4d3436d19d3203c5fb553caac53659e ++5348ffc3fda5168c1e9e14aa88b0c6aedbda7c94