阵列哪些页面到磁盘阵列、磁盘、页面

2023-09-03 11:44:32 作者:我特么限量版的﹌

有谁知道的.NET数组类/库,它可以将网页内容到磁盘上?

Does anyone know of a .NET array class/library which will page its contents out to disk?

我们的想法是能够使用它作为一个正常的数组,但该类使用较少的内存(以避免收到了内存不足的异常有超过2GB的数据)。理想情况下,类将实现之一:

The idea is to be able to use it as a normal array but the class uses less RAM (to avoid getting out-of-memory exceptions with more than 2GB of data). Ideally the class will implement one of:

System.Collections.Generic.IList System.Collection.IList

所以,否则很容易插槽到现有code - 和一个DataGridView希望工作(虽然我可能仍然需要实现虚拟模式)

So it will easily slot into existing code – and hopefully work with a DataGridView (although I may still need to implement "Virtual Mode").

任何想法多少AP preciated!

Any ideas much appreciated!

推荐答案

除非你在处理固定长度的记录(即使再有问题),你要与治疗2GB的数据就像碰到了很多问题一个数组,使很多阵列的使用进行可怕的 -

Unless you're dealing with fixed length records (and even then there's issues) you're going to run into a lot of problems with treating 2GB of data like an array that make a lot of array uses perform horribly -

的IndexOf() InsertAt() RemoveAt() 排序()

有什么理由数据库是行不通的?

Is there any reason a database wouldn't work?