Another micro-optimization in accessPayload(). Slightly smaller and faster.

FossilOrigin-Name: c012619b65d70b4ef6cf33532ef57d7f8ba42d74
This commit is contained in:
drh 2017-01-27 01:25:00 +00:00
parent cdf360a0d5
commit 6ee610bfc0
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
C Performance\soptimization\sin\saccessPayload().
D 2017-01-27T01:13:49.702
C Another\smicro-optimization\sin\saccessPayload().\s\sSlightly\ssmaller\sand\sfaster.
D 2017-01-27T01:25:00.940
F Makefile.in 5f415e7867296d678fed2e6779aea10c1318b4bc
F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
F Makefile.msc b8ca53350ae545e3562403d5da2a69cec79308da
@ -333,7 +333,7 @@ F src/auth.c 930b376a9c56998557367e6f7f8aaeac82a2a792
F src/backup.c faf17e60b43233c214aae6a8179d24503a61e83b
F src/bitvec.c 17ea48eff8ba979f1f5b04cc484c7bb2be632f33
F src/btmutex.c 0e9ce2d56159b89b9bc8e197e023ee11e39ff8ca
F src/btree.c 1329274c46bc554daf7acde825f72f76f66647ec
F src/btree.c 6a63fa34e6fe86e87090e41963c0f2fcf9d3e16d
F src/btree.h e6d352808956ec163a17f832193a3e198b3fb0ac
F src/btreeInt.h 10c4b77c2fb399580babbcc7cf652ac10dba796e
F src/build.c 9e799f1edd910dfa8a0bc29bd390d35d310596af
@ -1547,7 +1547,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 68e7a8c6765649195ef1ad9407d87d44a307b462
R cab1deb289447016960f1fadc0c9e121
P ebb1fd98d4e448aa6d8f1e5be7ddc5bedb3db95b
R 63992a28f021aa7b8223daa601910fb3
U drh
Z 955f6c694c099beee31ec142603efb52
Z 78e3ca04c2459249956256691b4d7091

View File

@ -1 +1 @@
ebb1fd98d4e448aa6d8f1e5be7ddc5bedb3db95b
c012619b65d70b4ef6cf33532ef57d7f8ba42d74

View File

@ -4617,16 +4617,16 @@ static int accessPayload(
}
}
amt -= a;
if( amt==0 ) return rc;
pBuf += a;
}
if( amt==0 ) break;
if( rc ) break;
iIdx++;
}
}
if( rc==SQLITE_OK && amt>0 ){
return SQLITE_CORRUPT_BKPT;
return SQLITE_CORRUPT_BKPT; /* Overflow chain ends prematurely */
}
return rc;
}