Dramatically improves the speed of mempool usage. I noticed some code in the mempool which iterated over buffers on every get() call. Guessing this to be expensive, I added a few benchmarks -- this is one of those rare -100% speed improvements. The reason this is safe because only the length of the provided []byte is important -- NOT it's contents. I verified this everywhere it was used (I knew this was the expected contract already), added some benchmarks, and we saw a great improvement.
Dramatically improves the speed of mempool usage. I noticed some code in the mempool which iterated over buffers on every
get()
call. Guessing this to be expensive, I added a few benchmarks -- this is one of those rare-100%
speed improvements. The reason this is safe because only the length of the provided[]byte
is important -- NOT it's contents. I verified this everywhere it was used (I knew this was the expected contract already), added some benchmarks, and we saw a great improvement.