Search:

Type: Posts; User: helloworld922

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    You say you don't need to write out the zero data to the new file, but do you need to keep it in memory? If you don't, as you read in the data file you can do a check first to see if you should keep...
  2. [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    HashMaps take up more memory but they are significantly faster at searching. However, in many cases I doubt the size of the base Hashmap structure will be significant compared to the size of the data...
  3. [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    They may have identical contents but when you concatenate strings in Java it needs to create a new string to store the data. Strings in Java can also be interned, meaning that strings with identical...
Results 1 to 3 of 3