[Mono-bugs] [Bug 80578][Wis] Changed - Optimize empty array allocation
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jan 22 13:51:51 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 marek.safar at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=80578
--- shadow/80578 2007-01-22 11:44:43.000000000 -0500
+++ shadow/80578.tmp.17136 2007-01-22 13:51:51.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 80578
Product: Mono: Runtime
Version: 1.2
OS: unknown
OS Details:
-Status: RESOLVED
-Resolution: WONTFIX
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Wishlist
Component: misc
AssignedTo: mono-bugs at ximian.com
ReportedBy: marek.safar at seznam.cz
QAContact: mono-bugs at ximian.com
@@ -43,6 +43,16 @@
------- Additional Comments From lupus at ximian.com 2007-01-22 11:44 -------
I don't think this is an interesting case for optimization: its not
worth it to slowdown the rest of the allocations for such a marginal
case. Maybe we could do something in the moving gc to just have one
instance but even then it's not clear this has any significance in the
real world.
+
+------- Additional Comments From marek.safar at seznam.cz 2007-01-22 13:51 -------
+Currently we do this optimization manually in case of
+mcs. Many 0-sized arrays have static field -> static ctor
+is generated. And it saved MBs of memory, I think it
+would be nice to have this in runtime to save developer time.
+
+Or try to search for [0]; in our corlib to see how many
+times it is used.
+
More information about the mono-bugs
mailing list