Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 5 - Part 3
Date: Wed Nov 21 2001 10:33 am
Author: Lee, Peter <petel@cmu.edu>
Subject: Re: garbage collection

What you say makes sense, but probably the net result is unpredictable. Suppose, for example, that there is some heap space left before calling makeIndex(), and that makeIndex() itself creates a fair amount of garbage. In that case, postponing the garbage collection might still win.

It might be interesting for you to try it both ways and see what works better.
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
garbage collection      Cipriani, Jason A.      Tue Nov 20 2001 2:21 am       
Re: garbage collection      Lee, Peter      Tue Nov 20 2001 3:41 pm       
Re: garbage collection      Cipriani, Jason A.      Tue Nov 20 2001 3:58 pm       
Re: garbage collection      Lee, Peter      Wed Nov 21 2001 10:33 am       
Re: garbage collection      Scherer, Sebastian      Tue Nov 20 2001 4:24 pm       
Re: garbage collection      Lee, Peter      Wed Nov 21 2001 10:35 am       

Back to previous screen