← Back to context

Comment by jvanderbot

6 months ago

You can literally feel the compiler getting slower for each type you add.

YSK: The compiler performance is IIRC exponential in the "depth" of types. And oh boy does GraphQL love their nested types.

Actually exponential or quadratic?

  • The rust devs said exponential for one step. Whether or not that step is required each compilation I don't recall. It was a git issue on rustc from a while back IIRC. Unfortunately I'm not at my computer to do a search for you.