The
test case shows streams approach to filter then sort is much slower on first call, seems to speed up on second and third, but the old way of sorting and filtering seems to be quicker.
Can anyone explain this?
Here are the results:
new:49 count: 2500
old:4 count: 2500
new:2 count: 2500
old:2 count: 2500
new:1 count: 2500
Files with the extension .java are not allowed as attachment in the message... so here is the code...