[Mono-dev] Should we replace MemoryStream?

Jeffrey Stedfast fejj at novell.com
Mon Nov 9 13:38:38 EST 2009

Miguel de Icaza wrote:
> Hello folks,
>     I just blogged about a memory fragmentation issue here:
> 	http://tirania.org/blog/archive/2009/Nov-09.html
>     And I am wondering: since MemoryStream is one of these sources of
> problems, we could replace this implementation with MindTouch's
> ChunkedStream.

I'm really liking the idea of a chunked stream like this. Even once sgen
is complete and deployed, a chunked stream will still be more efficient
- not just in avoiding fragmentation, but also because reallocating a
new, larger buffer, has overhead associated with copying the content
whereas allocating a new chunk is a cheaper operation.


More information about the Mono-devel-list mailing list