Java Code Challenge: Shortest Code and Lowest Latency
minborgsjavapot.blogspot.com
minborgsjavapot.blogspot.com
SpeedmentSucksLib.doTheThing()
Also we just are going to ignore import/main class LOC's? Really this is a terrible article and it leaves a bad taste in my mouth re: speedment.Then i read the first line, he is the CTO of Speedment.
So he had to add maven dependency to his project generate ton of code, to create his objects, retrieve all them and do the computation in the Speedment optimized functions.
So with his goal to use as less code as possible, he had to add third party library that added tons of code that he did not count in the lines of code that was written.
Seems a bit like self promotion and unfair to be honest.
Could it be that Speedment avoids the nested select and does the calculations of the statistics by itself? Would that mean that I should use Speedment only when the result set is very small? How would the performance look like if the task were to calculate the average film length of 10000 films from a table of 100,000 films?
I have contributed to open-source speedment stream ORM for many years and have now added in-JVM-memory acceleration. I am still curious to see if your guys can come up with something better.
Give it a real shoot using whatever you can think of. If you can beat it, I promise to write another article about it. Sounds fair?
NB: Setup code adds about 5 extra lines, similar to other tools.