I wrote an app that uses a memory mapping to access file. Read speed increased dramatically, so it was a success.
As expected, the memory allocated for the ByteBuffer
is not counted against the VM heap. In a heap dump, it appears that my app uses significantly less memory than it actually does.
My question is, what effect (if any) does this kind of allocation have on the device's memory management as it pertains to other apps? Does it make my app a "bad citizen" of the Android ecosystem?