This is an automated archive made by the Lemmit Bot.

The original was posted on /r/java by /u/we_are_mammals on 2023-11-07 03:38:59.


In the intro lecture of MIT 6.172 Performance Engineering, they start off with a naive triple-loop implementation of matrix multiplication in Python, Java and C and then make it progressively faster, going from 6 hours to 0.4 seconds (on an AWS instance):

lecture slide

I’m kind of curious how fast one can make pure Java here (OpenJDK to be exact)? Has anyone tried it? It could be a nice showcase for the Vector API.