jqwik
jqwik copied to clipboard
perf: arbitrary instances (e.g. combine {..}) are not serializable, and it is the major time consumer
Example is here: https://github.com/jqwik-team/jqwik/issues/624#issuecomment-2735720907
I execute it with increased tries so it takes 36 seconds on my machine.
@Property(tries = 100000)
fun test(@ForAll model: Model) {
}
The profiler shows that ObjectOutputStream.writeFatalException consumes ~30 seconds:
In practice, LambdaSupport.serialize results in serializing a lot of NotSerializableException instances which does not look right.
Here's an example of such case:
Currently not working on it. See Status: Maintenance Mode