Accidentally Quadratic Constant Folding
Accidentally Quadratic
Neal Gafter writes:I just fixed a bug in the implementation of constant folding in the C# and VB.Net compilers. They used to require O(n^2) space. Now they require O(n) space.The naive approach to implementing string concatenation for an expression such as "S1" + "S2" + "S3" is to recursively...