阵列哪些页面到磁盘 [英] Array which Pages to Disk

查看:136
本文介绍了阵列哪些页面到磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道的.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?

这篇关于阵列哪些页面到磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆