Improve DecodeBase58 performance the same way as commit 3252208 did for EncodeBase58.
bench_bitcoin result for Base58Decode before and after the patch, each tested three times: Before the patch:
Benchmark,count,min,max,average
Base58Decode,524288,0.000000976440788,0.000002053217031,0.000001960330792 Base58Decode,524288,0.000000979518518,0.000001978729415,0.000001956941560 Base58Decode,524288,0.000000986496161,0.000001988708391,0.000001964757757
After the patch:
Benchmark,count,min,max,average
Base58Decode,786432,0.000000660018486,0.000001336600690,0.000001329504509 Base58Decode,786432,0.000000668867870,0.000001348496880,0.000001338565805 Base58Decode,786432,0.000000656273187,0.000001334869012,0.000001324702074
That's about 32% decrease for the average time.