This simplifies the code and makes queries faster: name old time/op new time/op delta SelectStorageNodes-32 7.72ms ± 6% 7.22ms ± 3% -6.44% (p=0.016 n=5+5) SelectNewStorageNodes-32 7.75ms ± 2% 7.37ms ± 1% -4.89% (p=0.008 n=5+5) SelectStorageNodesExclusion-32 16.9ms ± 0% 16.6ms ± 0% -2.15% (p=0.008 n=5+5) SelectNewStorageNodesExclusion-32 17.2ms ± 0% 16.6ms ± 2% -3.69% (p=0.008 n=5+5) FindStorageNodes-32 45.5ms ± 0% 45.1ms ± 1% ~ (p=0.056 n=5+5) FindStorageNodesExclusion-32 77.4ms ± 0% 75.9ms ± 0% -1.91% (p=0.008 n=5+5) Change-Id: I38f77f6282b9738e8416113d42c6acb46c03da7b
Reduce the number of non-methods to reduce funcs in the namespace also combine a func to slightly condense the code more. Change-Id: Ifbe728eb8c8ca4c981df648decd259c2097b6b40