Re:Binary Search: A new implementation that is up to 25% faster
by jhayward on Monday July 20, 2020 @11:01AM
(#23898481)
This was somewhat the approach used in the ATLAS[1] linear algebra library. In the ATLAS case, systems were characterized through testing and a set of parameters generated. Then at installation time code was generated to match the system type using the given parameters.
[1] https://en.wikipedia.org/wiki/Automatically_Tuned_Linear_Alg...
Bonus if this library also detected/leveraged specialized hardware (GPU, AVX, etc) and then leveraged it appropriately.
Obviously, these parameters would need optional per-app-invocation overrides, e.g. so random apps didn't hog shared resources, e.g. for benchmarking, etc.
(I'm guessing this exists but not widely deployed...?)