Post Reply 
program execution speed as library vs variable HP50G
10-03-2017, 04:44 AM
Post: #7
RE: program execution speed as library vs variable HP50G
Hello,

If your lib is not in port 0 or 1, then each object of the lib needs to be copied from the card to RAM when they are called because the card emmory is not direcctly addressable (it is hidden behind the other card). This takes a lot of time, AND memory which is then GC'ed by the system.

This is the cause of your slow down.

You can circumvent this by loading all the most used functions in ram and storing them in local variables, and then call the local variables instead of your lib xobjs... This will be much faster. However, more memory is consumed as the objects will stay in RAM for the duration of the program.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: program execution speed as library vs variable HP50G - cyrille de brébisson - 10-03-2017 04:44 AM



User(s) browsing this thread: 2 Guest(s)