jqwik icon indicating copy to clipboard operation
jqwik copied to clipboard

perf: arbitrary instances (e.g. combine {..}) are not serializable, and it is the major time consumer

Open vlsi opened this issue 11 months ago • 1 comments

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:

Image

In practice, LambdaSupport.serialize results in serializing a lot of NotSerializableException instances which does not look right.

Here's an example of such case:

Image

vlsi avatar May 12 '25 07:05 vlsi

Currently not working on it. See Status: Maintenance Mode

jlink avatar Jul 11 '25 12:07 jlink