RPL programming questions
|
02-19-2014, 04:15 PM
Post: #11
|
|||
|
|||
RE: RPL programming questions
Hello HP50g fans,
first of all I can confirm the results of DavidM and thank you for simplefy my code. It is funny, of course in my all day programming the hp 50g I use consequently A instead of 'A' RCL (maybe it is a kind of sclerosis). Now I've tested the creating of global, local variables and putting values (which are deleted in every through going of the loop) on the stack with three little programs. All proggies have a loop from 1 to 1000 and we also have five different store places. TGLO for globals (182 sec) Code:
TLOC for locals (3 sec), here you don't need extra code for for deleting the variables, because after leaving the sub program the variables doesn't exist any longer. Code:
TSTK with stack (2 sec) Code:
You see the globals are 90 times slower as the stack or 60 times slower as the local variant. That sounds very much, but how often you need a programm which create and deletes 5000 variables. Therefore if you are not familiar with SysRPL use simply locals it is fast as a stack storage place and you need not any code for organizing the stack. The argument for a more readable code is untouched. greetings peacecalc |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)