title: Memory required for 'short' fields in Dalvik?
body: <p>Java virtual machines may use <code>int</code>-sized width for <code>short</code> fields as well (this depends on their internal implementation). Only the arrays (<code>short[]</code>) are exception, where it is always guaranteed that they take less space than an <code>int[]</code> internally as well). What about <em>Dalvik</em>?</p>
  
  <p>E.g. I have a class which contains 50 fields of type <code>short</code>. Sometimes in my application, 10000 of these classes exist. This means that the <code>short</code> fields should use 1MB of memory, but <em>if</em> Dalvik uses 4 bytes for <code>short</code> values internally, then this will be 2MB memory usage.</p>
  
  <p>How much memory should I expect Dalvik to use? (This refers to its internal memory use, and I'm aware of the fact that it might not be reflected by the system memory usage, e.g. because Dalvik already reserved a higher amount of memory from the system.)</p>