Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements #46

Open
IkeVoodoo opened this issue Apr 28, 2024 · 0 comments
Open

Performance improvements #46

IkeVoodoo opened this issue Apr 28, 2024 · 0 comments

Comments

@IkeVoodoo
Copy link

IkeVoodoo commented Apr 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant