3 ms·
The "levels" that are being changed are the number of nested `Inner`s - the decompiled example is Inner.Inner inner ("Level 2" in the article's terms) but
by al2o3cr 9y ago
The "levels" that are being changed are the number of nested `Inner`s - the decompiled example is
Inner.Inner inner
("Level 2" in the article's terms) but the crashing one is
Inner.Inner.Inner.Inner.Inner.Inner.Inner.Inner.Inner.Inner inner
Your calculation of the variable references is correct, but the thing the article's experiment varies is the exponent.
- ScottBurson 9y agoAh, I see — it's cubic in the number of type parameters, but it's exponential in the depth of the type reference in the field declaration. My bad; I didn't read carefully enough.