Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MemoryStream replacement?

A few weeks ago I read something about a new class in .Net 4/4.5 that performs better than MemoryStream, but I can't seem to find it anymore.

I've looked in the IO namespace and could not find anything. Does anyone remember reading something like that?

Thanks

like image 943
MeTitus Avatar asked Oct 03 '12 17:10

MeTitus


2 Answers

Perhaps you read about Memory Tributary, a CodePlex project that provides a MemoryStream replacement better suited for large amounts of memory

MemoryTributary is a MemoryStream replacement using multiple memory segments to store the content of the stream, as opposed to the single byte array of MemoryStream. It is designed to be a complete replacement, capable of handling the large datasets that MemoryStream cannot.

http://memorytributary.codeplex.com/

like image 199
Eric J. Avatar answered Oct 12 '22 00:10

Eric J.


Not the answer that OP was looking for, but it may be usefull for someone like me who searches for MemoryStream replacement: RecyclableMemoryStream released by Bing team, which is actually better performing MemoryStream drop-in replacement.

like image 30
ghord Avatar answered Oct 12 '22 02:10

ghord