Some simple optimizations to SelectCoinsBnB
. In total these changes sum up to a speedup of a factor of about 2.4 on my machine:
0BnBExhaustion, 5, 650, 2.08837, 0.000634196, 0.000660664, 0.000638457 # before
1BnBExhaustion, 5, 2300, 4.89576, 0.000422629, 0.000429628, 0.000424571 # std::vector<char>
2BnBExhaustion, 5, 2300, 3.48065, 0.000299667, 0.000308361, 0.000301751 # with curr_selection_size
3BnBExhaustion, 5, 2300, 3.08375, 0.000266867, 0.000270109, 0.00026751 # [] instead of .at
These changes are minor code refactoring that should not change the behaviour of the algorithm in any way.