[Mono-bugs] [Bug 80508][Nor] Changed - code quality regression for array init

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 12 18:04:38 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lupus at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80508

--- shadow/80508	2007-01-12 17:13:29.000000000 -0500
+++ shadow/80508.tmp.7257	2007-01-12 18:04:38.000000000 -0500
@@ -25,6 +25,13 @@
 I think it is not a regression. I have made this change couple of
 months ago after some performance measurements.
 
 See expression.cs and
 
 const int max_automatic_initializers
+
+------- Additional Comments From lupus at ximian.com  2007-01-12 18:04 -------
+It is a bad change. Instead of filing a whishlist bug for the jit to
+optimize this case you cause bloat both in the assembly and in the
+runtime generated code, making the code unoptimizable. Your limit can
+cause 4-5 KB of generated code just to initialize an array. Please
+revert to more sane values, like 10 or 20 instead of 200.


More information about the mono-bugs mailing list