Open amachwe opened 7 years ago
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.
Hm, interesting, something to look into... .
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.