walkie / icfp2014

University of Marburg - ICFP Programming Contest 2014
2 stars 1 forks source link

80% time for inference is spent in reflection #1

Closed Blaisorblade closed 9 years ago

Blaisorblade commented 9 years ago

We wanted to save code when implementing this, so type inference uses reflection to transform data structures. It takes 85% of the 60-70s it now takes to generate code.

This is used to emulate shapeless's everywhere, which doesn't work inside cakes.

The main culprit is the call from onTypes to mapSubtrees.

Blaisorblade commented 9 years ago

Fixed in 319d713131040db62c1a9d5f8cb813bc02dba76d, closing.