Context: We're currently running ComposablePreviewScanner via Roborazzi plugin. This creates (on my PC) 16 shards, which each spent almost a minute scanning for previews to then throw away 15/16th of the result and run on their part. We have about ~800 previews.
Request: Support running at build time to be able to cache the scan result for shards (and potentially even between runs if sources did not change).
From my understanding this would require to use overrideClasspath in https://github.com/sergio-sastre/ComposablePreviewScanner/blob/master/core/src/main/java/sergio/sastre/composable/preview/scanner/core/scanner/ComposablePreviewScanner.kt#L30
We could then dump the found previews in a file, and each shard can read what it needs easily.
Alternative: If you feel like this is the wrong way to go about optimizing this, I'm happy to discuss 🙂
Context: We're currently running ComposablePreviewScanner via Roborazzi plugin. This creates (on my PC) 16 shards, which each spent almost a minute scanning for previews to then throw away 15/16th of the result and run on their part. We have about ~800 previews.
Request: Support running at build time to be able to cache the scan result for shards (and potentially even between runs if sources did not change).
From my understanding this would require to use overrideClasspath in https://github.com/sergio-sastre/ComposablePreviewScanner/blob/master/core/src/main/java/sergio/sastre/composable/preview/scanner/core/scanner/ComposablePreviewScanner.kt#L30
We could then dump the found previews in a file, and each shard can read what it needs easily.
Alternative: If you feel like this is the wrong way to go about optimizing this, I'm happy to discuss 🙂