Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pme123/scala3-compile-tests
Investigating long compile times.
https://github.com/pme123/scala3-compile-tests
Last synced: about 1 month ago
JSON representation
Investigating long compile times.
- Host: GitHub
- URL: https://github.com/pme123/scala3-compile-tests
- Owner: pme123
- Created: 2023-09-17T10:55:51.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-25T10:53:56.000Z (about 1 year ago)
- Last Synced: 2023-11-25T11:23:05.460Z (about 1 year ago)
- Language: Scala
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing Compile Times
I struggle with long compile times.This project should help optimizing it and ask questions to specialists;).
At the moment I think the problem is the Type derivation for JSON marshalling.
## Usage
### Cleanup
Just delete the `generated` package in `src/main/scala/scala3/compile/tests`.
### Generate Test Classes
I added 2 Source Generators:
- _CiceGenerator_
- _JsoniterGenerator_You can edit `numberOfTestFiles`, default is 50.
```bash
> sbt run
Multiple main classes detected. Select one to run:
[1] scala3.compile.tests.generated.main
[2] scala3.compile.tests.mainCirce (-> CiceGenerator)
[3] scala3.compile.tests.mainJsoniter (-> JsoniterGenerator)
```### Test Compile Times
I added `scalacOptions ++= Seq("-Vprofile",)` to get more information.Just `sbt compile`