toService with Circe takes forever to compile for large Coproducts
See original GitHub issueLooks like valueToResponse
might send the compiler on a wild goose chase to look for Encoder
instances at each step of the Coproduct
induction, but we never really want to do that!
I.e. Encoder
instance of the Coproduct
tails.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11
Top Results From Across the Web
Why does C++ compilation take so long? - Stack Overflow
Compiling a C++ file takes a very long time when compared to C# and Java. It takes significantly longer to compile a C++...
Read more >Cookbook - Finch - Finagle
toService compile error. Finch promotes a type-full functional programming style, where an API server is represented as a coproduct of all the possible...
Read more >[BUG] Awfully slow compilation of a source file with a ... - GitHub
The problem seems to happen because of a big globally-initialized array, which has around 390 entries. If I edit file src/table/settings.h and ...
Read more >Extremely Long Compile Times - Forum - One Identity
I'm using version 7.1.1 and I'm seeing some extremely long compile times when ... It's taking upwards of an hour where before it...
Read more >FAQ: Speeding up slow build times - Documents - EngineerZone
Q: I'm encountering slow build times with the tools. ... Large array initialisers can take a long time to parse (this is particularly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right, sorry I forgot to reply to your previous message, I guess you figured it out but the
json
method is one we have in our codebase at work, not coming from Finch.To follow up the problem I posted above, after refactoring the code to use
coproduct
as suggested by joroKr21, the improvement is very very significant!