Posts: 362
Threads: 30
Joined: Jul 2005
If you have little memory, the garbage collection will be quite fast as it does not need to tidy much.
However, if you have lots of free memory, it will not happen so often but will take much longer.
Basically, it works like this, the hp leaves all its temporary calculation, objects, rubbish in memory until it feels the memory is too full. It then cleans everything and starts again. If less space (memory) is available, it will have to clean more often but will have less work to do each time and you would not notice it.
When the 49 was introduced with 256 K of free RAM there was lots of people complaining about the garbage collection delay. The solution was to store a huge string in memory to have only say 64K left and adjust the size of this string to your memory requirements. Garbage collection was later improved to cope with the 256K.
Arnaud