After a day optimizing ASTs, Magnolia now gets approximately 12x better compile-time performance for typeclass derivation than Shapeless!
-
Show this thread
-
-
Replying to @skaalf
Yes. For starters, I was generating the code for every typeclass twice.
But I also reduced my anonymous class count.1 reply 0 retweets 0 likes -
Replying to @propensive @skaalf
And managed to reuse typeclasses repeated in the same case class. Would be nice to deduplicate across case classes, but I'm not there yet.
2 replies 0 retweets 0 likes -
Replying to @propensive @skaalf
deduplicating might not be trivial & cost a lot... that will be some kind of compromise certainly...
1 reply 0 retweets 0 likes
Replying to @mandubian @skaalf
I don't think it would be a huge cost, compared to typechecking. My original code wasn't written with this optimization in mind, though...
1:43 AM - 6 Nov 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.