How does an IntBuffer compare to an array in terms of memory usage?
<p>So I have a big list of integers I have to work with (in the order of 70Mb). As a part of the process of reading them, I need to temporarily store them. I can either spread them over several IntBuffers, or allocate a couple of large arrays. </p>

<p>I couldn't find any documentation however on how an IntBuffer compares to an array in terms of memory usage (with all the metadata that java adds). Does anyone know anything about this?</p>
