After a day optimizing ASTs, Magnolia now gets approximately 12x better compile-time performance for typeclass derivation than Shapeless!
Yes. For starters, I was generating the code for every typeclass twice.
But I also reduced my anonymous class count.
-
-
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.
-
deduplicating might not be trivial & cost a lot... that will be some kind of compromise certainly...
- Show replies
New conversation -
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.