Optimize _for_probe() using const local variables. by dbaarda · Pull Request #196 · librsync/librsync

Use const local variables for the tmask and ktable to avoid dereferencing them from the hashtable with t->tmask and t->ktable repeatedly in the tight probing loop.

This doesn't make much difference when optimizing gcc with -O3, but it does with lower levels of optimizing, and is highly visible when profiling. So this will presumably help a fair bit on platforms that don't have highly optimizing compilers.