B
billsahiker
Is the capacity of collections, such as arraylist, limited by
available RAM, or do they use virtual memory, caching to disk when
needed? I tested this by writing a simple console application that
declares an arraylist and using a for loop that adds 75 million items,
each with the number 1. I get an outofmemory exception. It works with
60 million items, and takes 81 seconds. I have a new pc with 1 GB RAM,
HD with 150GB free. using framework 2.0, vs2005.
Bill
available RAM, or do they use virtual memory, caching to disk when
needed? I tested this by writing a simple console application that
declares an arraylist and using a for loop that adds 75 million items,
each with the number 1. I get an outofmemory exception. It works with
60 million items, and takes 81 seconds. I have a new pc with 1 GB RAM,
HD with 150GB free. using framework 2.0, vs2005.
Bill