Posts: 97
Threads: 9
Joined: Nov 2011
Hello hp 50g freaks,
I didn't find an answer to this question: The read-ability of RPL programs is poor (nevertheless it is language with lot of fun (for me)). What is the effect to of the names length on the execution performance? For instance: I like to use the name "DELTAxSP1xSP2XVER" instead of "DS1S2V". Shure I need then more memory (useullay factor 2, but that's not a problem).
I hope there is outside somebody, who can tell me something about it.
Greetings
peacecalc.
Edited: 29 Oct 2012, 3:57 a.m.
Posts: 1,278
Threads: 44
Joined: Jul 2007
It will be slightly slower, but I expect you will in essence be unable to detect any speed differences.
Much more time in the program will be consumed by checking arguments at each command instead.
TW
Posts: 528
Threads: 40
Joined: Dec 2008
I know you only asked about speed, but I'll point out that the program will be one byte larger for each character in the name, each time you use it. So if a name is 5 characters longer than an alternative, and you use the name 7 times in the program, you'll save 35 bytes by using the shorter name.
Dave
Posts: 250
Threads: 14
Joined: May 2007
But if you compile the program into a library, then they all become XLIBs and take the same amount of space at each reference no matter how long of a name you give them.
Eric
Posts: 97
Threads: 9
Joined: Nov 2011
Hello Supporting-Team,
thank you all for sharing your knowledge. I will try building a libary
so I can use my proggies for unfolding 3 d meshes into plane in a compiled form, where the the length of names irrelevant is.
I hope this is possible without any knowledge of SYS RPL. I try the program that is mentioned in the user guide of the hp 50g: LBMKR (hpcalc.org).
Greetings
peacecalc
Posts: 97
Threads: 9
Joined: Nov 2011
Hello all,
now I have packed my proggies into a lib, but it has nearly the same size like the "unlibed" proggies, did Eric mean something else? I used LBMKR, it just works fine. Although its nearly 13 years old.
Sincerely
peacecalc