MemoryStream replacement?

北慕城南 提交于 2020-01-02 04:41:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!