Where is the data in arraylists stored

ramanaths

Member
Joined
May 31, 2005
Messages
19
Programming Experience
Beginner
Hi

I have an arraylist that continuously gets populated with data and so keeps growing. I find the performance of the app/system starts to slow down when the number of entries starts to cross thousands and gets into lakhs.

Where is this data in the arraylist stored? RAM? Virtual memory? Temporary files? :confused:

Would appreciate any help on this detail either as a reply or with links to pages with related information to this specific question relating to place of storage of arraylist.:(

Thanks:)
 
RAM.... it's simply stored in memory unless you do something with it to store it to the HD or something.

What in the world are you doing that has you adding thousands of items to an array list?

-tg
 
Thank you for responding, TG.

The app reads off the serial port. A device connected to the serial port dumps data regarding information on other devices in the network.

All this information goes into the arraylist. Doing a stress test by simulating a lakh of data coming in slows down the read process. After a while there is a windows pop up that says low on virtual memory.

With the data in the arraylist there is a graph being plotted. Could this drawing be the reason for expanding virtual memory?:confused:
 
Back
Top