[Mono-bugs] [Bug 45001][Nor] New - Marshal.Prelink is very slow.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 17 Jun 2003 13:21:32 -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 randyridge@hotmail.com.

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

--- shadow/45001	Tue Jun 17 13:21:32 2003
+++ shadow/45001.tmp.15287	Tue Jun 17 13:21:32 2003
@@ -0,0 +1,47 @@
+Bug#: 45001
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: Windows XP Pro
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: randyridge@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Marshal.Prelink is very slow.
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Use this code:
+
+MethodInfo[] mi = Type.GetType("Your Type Here").GetMethods();
+for(int i = 0; i < mi.Length; i++) {
+    try {
+        // Without this line performance is fine.
+        Marshal.Prelink(mi[i]);
+    }
+    catch {}
+}
+mi = null;
+
+2. Run your application...
+3. Observe performance.
+
+Actual Results:
+Performance is very slow.
+
+Expected Results:
+Performance should be speedier.
+
+How often does this happen? 
+Every time.