[Mono-bugs] [Bug 73936][Min] Changed - gmcs does not optimize for space
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Mar 2005 15:35:34 -0500 (EST)
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 nazgul@omega.pl.
http://bugzilla.ximian.com/show_bug.cgi?id=73936
--- shadow/73936 2005-03-21 15:25:40.000000000 -0500
+++ shadow/73936.tmp.25660 2005-03-21 15:35:34.000000000 -0500
@@ -133,6 +133,26 @@
slower
(http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?did=1&t=4pUuXAlfXBwZaLyAWxinehiq7qZrf5V6mK4nwlrLErGeauo6QmckGFWIQjoI0l56l3zxgu0R8fOA!K*qS!IZy2uw$$&p=4bxwvy9diGkDyDW7r0b2540!C5EqPdzzi3w2GFLMOe0FPK*kH2EvUhmPNrRGceTVgqln!puNMLQwpJ1aDbgcCKGNu6adUOAr!*!50iu6ZaF9Xs2wLbwMD75Cf0t7AoBoAr*B9qpFEb79Q$&feedbackid=58ece8e2-6914-4049-9d1a-2d040b705512)
On mono it is faster though.
The fact that csc do not optimize self tail call is the proof that it
is lame compiler, not that this is the *right* thing.
+
+------- Additional Comments From nazgul@omega.pl 2005-03-21 15:35 -------
+> About xplatform, what I am saying is that if you rely on -O=tailc,
+> your program won't work on the msft jit unless they do something
+> similar.
+
+This way of thinking is IMHO wrong. Self tail calls it just an
+optimization, it helps in 99,999% of cases.
+Is there some policy in mono that forbids you to optimize cases, which
+are not optimized in MS.NET?
+For example exception handling is much faster in mono than in MS.NET,
+does it mean we should make it slower, so people relying on it will
+not suffer from "incompatibilities"? It doesn't make much sense.
+
+I also do not think that people can get "habits" of using too much
+exceptions or recursive like programming just because it is fast in
+mono, most of them will know that other runtimes might not handle it
+well or/and test it.
+
+Of course this is a FEATURE, but it would be nice to see it in mcs/gmcs.