fsprojects / TickSpec

Lean .NET BDD framework with powerful F# integration
Apache License 2.0
133 stars 23 forks source link

Issue #45: Improve execution time in large assemblies #69

Closed mchaloupka closed 5 months ago

mchaloupka commented 5 months ago

The usage of seq caused the reflection to be done repetitively for all operations. I have improved the execution time of the tests in the provided project (see issue) from 12 seconds to 1.4 seconds just by making this tiny change of materializing the sequences into lists. I had to materialize it in two places:

bartelink commented 5 months ago

Wow, nice work to figure out such a productive change

mchaloupka commented 5 months ago

I have done further improvements to scan through the methods less times (it gets the time for the example project under 900ms).