liblinear-java icon indicating copy to clipboard operation
liblinear-java copied to clipboard

Performance improvements

Open IkeVoodoo opened this issue 1 year ago • 0 comments

This would slightly differ from the original implementation, however, if we replace all instances of

x += y * z;

with

x = Math.fma(y, z, x);

we can get a huge speedup, for example, replacing all occurrences of this in just the de.bwaldvogel.liblinear.SparseOperator class we can get a 2x speed up on machines with FMA enabled.

However it would require switching to Java 9.

IkeVoodoo avatar Apr 28 '24 18:04 IkeVoodoo