Hi,
APS wrote:
and so on, for the thousands of files placed inside the bin directory.
It seems to me that there's some problem cause all the files seems
missing even if they are there and it always redo the copying.
Most of the loading time is spent in this multiple shadow copying, as I
have many assemblies inside bin directory this cause an heavy disk usage
and many minutes of wait.
The log message might be misleading: it is even emitted when
the assembly was not actually shadow-copied due to mtime
equality.
Try the attached patch to see if the copy operations are
actually skipped (grep for "up-to-date" in your logs).
Robert
Index: metadata/appdomain.c
===================================================================
--- metadata/appdomain.c (revision 142262)
+++ metadata/appdomain.c (working copy)
@@ -1431,8 +1431,10 @@
mono_raise_exception (exc);
}
- if (!private_file_needs_copying (filename, &src_sbuf, shadow))
+ if (!private_file_needs_copying (filename, &src_sbuf, shadow)) {
+ mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_ASSEMBLY, "Shadow copy
%s of %s is up-to-date.\n", shadow, filename);
return (char*) shadow;
+ }
orig = g_utf8_to_utf16 (filename, strlen (filename), NULL, NULL, NULL);
dest = g_utf8_to_utf16 (shadow, strlen (shadow), NULL, NULL, NULL);
_______________________________________________
Mono-aspnet-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list