File Streaming in Java

后端 未结 3 1272
我在风中等你
我在风中等你 2020-12-15 00:32

I\'m currently developing 3D graphics application using JOGL (Java OpenGL binding). In brief, I have a huge landscape binary file. Due to its size, I have t

3条回答
  •  没有蜡笔的小新
    2020-12-15 00:52

    For a 220 MB file I would memory map the whole thing into virtual memory. The reason FBM is so fast is it doesn't actually read the data into memory, it just makes it available.

    Note: when you run the test you need to compare like for like i.e. when the file is in the OS cache it will be much faster no matter how you do it. You need to repeat the test multiple times to get a reproduce able result.

提交回复
热议问题