Open hduelme opened 1 month ago
This removes unnecessary overhead while running tests.
Can you give numbers for this overhead?
I did some testing. If the build is successful no recursive calls happen. Only if something is written to the errorStream
the IOException
is thrown. In this case a found between 10 to 500 recursive calls.
In this case a found between 10 to 500 recursive calls.
What's wrong with that?
When you said "overhead" I was expecting some time measurements... a recursive call is not overhead per se.
I agree. I was also expecting different results. I got here in the first place due to a exception with a large stacktrace
What it does
Currently
VMInputStream
uses recursion to retry reads in theint read()
method. I replaced the recursive call with a while loop. This removes unnecessary overhead while running tests.How to test
This doesn't change any behavior.
Author checklist