HP Forums
48GX computing delay - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: 48GX computing delay (/thread-83556.html)

48GX computing delay - Steve Jirsa - 11-30-2005

I have a 48GX which often has a several second delay when performing basic arithmetic. Has anyone else experienced this and is there anything that can be done?

Re: 48GX computing delay - Han - 11-30-2005

I have a 48GX (several actually), a 48G (again several) and 48G+ (just one). I also have several 48SX models. I would be willing to test out your calculations on these models and time them for you for comparison. Could you give us some details as to what it is you are calculating?


Re: 48GX computing delay - Steve Jirsa - 12-01-2005

It's usually just basic multiplication or division and it seems to happen pretty randomly.

Re: 48GX computing delay - Arnaud Amiel - 12-01-2005

Wouldn't it be garbage collection? It would especially happen if you don't have much in memory.


Re: 48GX computing delay - Han - 12-01-2005

I believe you are correct. During garbage collection, the calculator will be seemingly slower. The goal of garbage collection is to get rid of temporary objects in memory which are no longer referenced. If you are low on memory, then the HP 48 will try to garbage collect often in an attempt to get more working memory. Is this the case? Do you have very little free memory?

Re: 48GX computing delay - Arnaud Amiel - 12-02-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.


Re: 48GX computing delay - Han - 12-02-2005

Ahh... I truly blundered then. I had assumed that with such little memory, gargabe collection would occur so often that the frequency of gargabe collection was what was noticable. It makes more sense the way you described it.

Just out of curiosity: how did they make the fix for the 256kB of memory?

Edited: 2 Dec 2005, 4:27 p.m.

Re: 48GX computing delay - Arnaud Amiel - 12-02-2005

I believe that the Garbage collector of the 49G was rewritten completely in a ROM update. It still happens but it is much fatser. On the 49g+ I believe it was directly implemented in ARM