问题
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
回答1:
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/
回答2:
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.
来源:https://stackoverflow.com/questions/12713886/memorystream-replacement