oyvindberg / typo

Typed Postgresql integration for Scala. Hopes to avoid typos
https://oyvindberg.github.io/typo/
MIT License
101 stars 11 forks source link

Inline implicits #19

Closed oyvindberg closed 1 year ago

oyvindberg commented 1 year ago

Avoiding reinferring Read for doobie is not enough to compile this stuff fast. This PR inlines all the implicits for doobie, circe, play-json.

For anorm most is inlined, but it was fast enough and the result was too ugly to keep. What is kept implicitly is the string interpolation syntax.

oyvindberg commented 1 year ago

compile numbers:

anorm/play-json 2.12: 16.6, 14.7
doobie/circe 2.12: 14.9, 16.3

anorm/play-json 2.13: 16.7, 16.0
doobie/circe 2.13: 15.4, 15.2

anorm/play-json 3.3: 13.8, 14.4 
doobie/circe 3.3: 13.4, 14.4