]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Remove an obsolete optimization in pcache that due to more recent changes
authordrh <drh@noemail.net>
Fri, 1 Sep 2017 12:57:33 +0000 (12:57 +0000)
committerdrh <drh@noemail.net>
Fri, 1 Sep 2017 12:57:33 +0000 (12:57 +0000)
was recently making the code a little slower.

FossilOrigin-Name: c4e7e175eecfd79015f4fae99618dfce6baf97c21bf3c909ea535d4e12dcaaad

manifest
manifest.uuid
src/pcache.c

index 8eef081e9be5a9805632fb87808812d08b3cf886..082580d908241f901621fc327136c5ef19603493 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Small\ssize\sand\sperformance\simprovement\sin\spcacheManageDirtyList()\sby\snot\nzeroing\sthe\sPgHdr.pDirtyNext\sand\sPgHdr.pDirtyPrev\spointers\sfor\sPgHdr\sobjects\nthat\sare\snot\son\sthe\sdirty\slist.
-D 2017-09-01T12:18:41.125
+C Remove\san\sobsolete\soptimization\sin\spcache\sthat\sdue\sto\smore\srecent\schanges\nwas\srecently\smaking\sthe\scode\sa\slittle\sslower.
+D 2017-09-01T12:57:33.041
 F Makefile.in c644bbe8ebe4aae82ad6783eae6b6beea4c727b99ff97568b847ced5e2ac7afb
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 25b154da7f0b3d4924f27378c1f8d006285b80811f1ccf3ed953dbebf6282136
@@ -446,7 +446,7 @@ F src/os_win.h 7b073010f1451abe501be30d12f6bc599824944a
 F src/pager.c bf51378c57c8e05d7f4d7bb9861f403a2e40cde82e25513401216d1ed30bc3e5
 F src/pager.h f2a99646c5533ffe11afa43e9e0bea74054e4efa
 F src/parse.y 52ef3cecd0934e9da4a45b585883a03243ad615d338ad94f44501a05891dcdfa
-F src/pcache.c f79181979fe7954b7bb4ef6c9689eabaa6733ed7393b25a4f77e15d11362b29d
+F src/pcache.c 4bada070456980c3c1f16d58ec2e64e389ad77b935e3d77e0c96e7bbd397289c
 F src/pcache.h 072f94d29281cffd99e46c1539849f248c4b56ae7684c1f36626797fee375170
 F src/pcache1.c 716975564c15eb6679e97f734cec1bfd6c16ac3d4010f05f1f8e509fc7d19880
 F src/pragma.c a4e5028dfc8af4c5c347cd0e91bd2f0c0f81fcd9b2c6e0acf8da7da51df7f1fe
@@ -1651,7 +1651,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 4094a3410e05597d0adc740d161e0358a3041c5a4e73bde35b1e983594c6879a
-R 5aa7325d41fae70be10866bcc032aad5
+P 919863b14859d958d6c078097faae02070c7bd082e2814cf3f84bd84921e4419
+R 0eee553fc228f3f42e4580f46005e756
 U drh
-Z 3a2ed42dc8bf752f068ef19d1afbebba
+Z 71c472332c9be0857de95ba6da186b34
index ff56ea75d907754129f8d1fee34f45643b6e73e8..e4cecf80a42b9113e06b71a41cefbe8a40c059c4 100644 (file)
@@ -1 +1 @@
-919863b14859d958d6c078097faae02070c7bd082e2814cf3f84bd84921e4419
\ No newline at end of file
+c4e7e175eecfd79015f4fae99618dfce6baf97c21bf3c909ea535d4e12dcaaad
\ No newline at end of file
index 9687ac770ffc0454904b60062e1ba7176beb4ac0..6f43a1e8aff25c5784b4bdb84993718f63bae5d2 100644 (file)
@@ -510,11 +510,7 @@ void SQLITE_NOINLINE sqlite3PcacheRelease(PgHdr *p){
   if( (--p->nRef)==0 ){
     if( p->flags&PGHDR_CLEAN ){
       pcacheUnpin(p);
-    }else if( p->pDirtyPrev!=0 ){ /*OPTIMIZATION-IF-FALSE*/
-      /* Move the page to the head of the dirty list. If p->pDirtyPrev==0,
-      ** then page p is already at the head of the dirty list and the
-      ** following call would be a no-op. Hence the OPTIMIZATION-IF-FALSE
-      ** tag above.  */
+    }else{
       pcacheManageDirtyList(p, PCACHE_DIRTYLIST_FRONT);
     }
   }