Java array with more than 4gb elements

后端 未结 11 1841
心在旅途
心在旅途 2020-11-27 07:06

I have a big file, it\'s expected to be around 12 GB. I want to load it all into memory on a beefy 64-bit machine with 16 GB RAM, but I think Java does not support byte arra

11条回答
  •  失恋的感觉
    2020-11-27 08:02

    I suggest you define some "block" objects, each of which holds (say) 1Gb in an array, then make an array of those.

提交回复
热议问题