Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 3 Forum
Date: Fri Sep 28 2001 6:09 pm
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu>
Subject: Re: memory issues

I just ran a little test on my code, and it doesn't seem like TreeSet could be the sole cause of your problems. I measured the memory usage for my code (around 16MB over the Java VM footprint of 3.5MB), then replaced the Vector I was using with a TreeSet and ran it again. The memory used went up from the previous 16MB to 20MB, not a huge jump, and well within the 64MB bound we seem to have been given.

Anyway, I can tell you my code is not specifically optimized for size (I use a few tricks here and there), so take it from me that it is possible to use a TreeSet and stay easily within the memory requirements.
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
memory issues      Chow, Jicai Jonathan      Fri Sep 28 2001 4:15 pm       
Re: memory issues      Lee, Peter      Fri Sep 28 2001 4:38 pm       
Re: memory issues      Cipriani, Jason A.      Fri Sep 28 2001 5:39 pm       
Re: memory issues      Bortz, Andrew S.      Fri Sep 28 2001 6:09 pm       
Re: memory issues      Zelinski, Adam C.      Fri Sep 28 2001 6:28 pm       
Re: memory issues      Bortz, Andrew S.      Fri Sep 28 2001 6:37 pm       
Re: memory issues      Danish, Matt R.      Sat Sep 29 2001 2:18 pm       
Re: memory issues      Cipriani, Jason A.      Mon Oct 1 2001 9:32 am       
Re: memory issues      Yuen, John      Sat Sep 29 2001 1:00 am       
Re: memory issues      Yuen, John      Sat Sep 29 2001 1:01 am       
Re: memory issues      Shi, Ying      Sun Sep 30 2001 11:11 pm       

Back to previous screen