On Mon, 2009-07-13 at 19:39 +0200, pablosantosl...@terra.es wrote: > Hi all, > > On BinaryServerFormatterSink.cs, a new MemoryStream is being created to > attend every remoting call. > > Under high load conditions it will make the GC work harder than > required, both decreasing performance and potentially causing memory > problems. > > It should be replaced by some sort of MemoryStream based on preallocated > memory buffers.
Are you volunteering? Have you profiled the application or is this just a guess? > Maybe something like ChunkedMemoryStream in Rotor. > > http://www.koders.com/csharp/fid0C95C784238E26C8EAC95C7A852A34A0CE9305BB.aspx?s=chunkedmemorystream If you look at that code you are not allowed to contribute to mono anything based on what you saw. System.Web uses unmanaged chunks of memory together with an unmanaged memory based stream. -Gonzalo _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list