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

FloatMatrix - toString is very slow #82

Open
amachwe opened this issue Sep 22, 2016 · 1 comment
Open

FloatMatrix - toString is very slow #82

amachwe opened this issue Sep 22, 2016 · 1 comment
Labels
accepted This sounds like something to look into.
Projects

Comments

@amachwe
Copy link

amachwe commented Sep 22, 2016

Firstly: Really like using JBLAS, thank you!
Probably because of the String Formatting methods being used.

Using the toString on FloatMatrix is very slow.
It is faster to call elementsAsList and then call the toString function.

Attached a performance test.
FloatMatrixToString.zip

The difference is really significant especially if you are printing in a loop.

For my tests it takes approximately 10 times longer to call toString directly as compared to converting it to a list and calling to string on it.

@mikiobraun
Copy link
Member

Hm, interesting, something to look into... .

@mikiobraun mikiobraun added the accepted This sounds like something to look into. label Aug 25, 2020
@mikiobraun mikiobraun added this to Backlog in Task board Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This sounds like something to look into.
Projects
Task board
Backlog
Development

No branches or pull requests

2 participants