[Mono-bugs] [Bug 56828][Wis] Changed - [PATCH] mcs does not pre-load same assemblies than csc

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 13 Apr 2004 12:39:49 -0400 (EDT)


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 bmaurer@users.sf.net.

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

--- shadow/56828	2004-04-13 11:53:24.000000000 -0400
+++ shadow/56828.tmp.31961	2004-04-13 12:39:49.000000000 -0400
@@ -67,6 +67,34 @@
 Miguel, can you please reconsider applying this patch ?
 
 ------- Additional Comments From gonzalo@ximian.com  2004-04-13 11:53 -------
 Btw, I wouldn't reapply the patch, but use a mcs.rsp file in /etc/mono
 and unless /noconfig is passed, inject a @/etc/mono/mcs.rsp before all
 other parameters.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-13 12:39 -------
+Miguel, I think I agree with Gert here: being compatible is *MUCH* 
+more important.
+
+One solution we can do is to give MCS a list of the namespaces 
+exposed by the BCL. If, with the default set that we currently has, 
+it can not find an item, it will start loading the other assemblies. 
+However, if the assembly has no relevant classes, it would not load 
+them.
+
+Example:
+If you have:
+using System.Web;
+
+and mcs cant find a class, it would load System.Web.dll and 
+S.W.Services.dll, because those assemblies expose System.Web classes. 
+However, System.Data.dll would *NOT* be loaded, because it does not 
+expose any such classes.
+
+IN fact, we could extend this concept even more and not load 
+System.Dll or System.Xml.dll unless they are used. This should make 
+compiling hello world faster.
+
+Also, a developer who not want to pay the price of loading the 
+assemblies can modify their rsp file. I do something like this on my 
+windows box today. I really hate having the 5 lines of header, so in 
+my rsp file, I added /nologo. You can just as well delete assemblies.