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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
program execution speed as library vs variable HP50G - snrowe - 09-30-2017, 02:50 AM
RE: program execution speed as library vs variable HP50G - cyrille de brébisson - 10-02-2017, 05:48 AM
RE: program execution speed as library vs variable HP50G - snrowe - 10-03-2017, 01:05 AM
RE: program execution speed as library vs variable HP50G - DavidM - 10-02-2017, 05:15 PM
RE: program execution speed as library vs variable HP50G - snrowe - 10-03-2017, 01:50 AM
RE: program execution speed as library vs variable HP50G - DavidM - 10-03-2017, 03:16 AM
RE: program execution speed as library vs variable HP50G - cyrille de brébisson - 10-03-2017 04:44 AM
RE: program execution speed as library vs variable HP50G - Software49g - 10-03-2017, 10:22 AM
|
User(s) browsing this thread: 2 Guest(s)