HP Forums
RPL long vs. short names - 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: RPL long vs. short names (/thread-233283.html)

RPL long vs. short names - peacecalc - 10-29-2012

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.


Edited: 29 Oct 2012, 3:57 a.m.

Re: RPL long vs. short names - Tim Wessman - 10-29-2012

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.


Re: RPL long vs. short names - David Hayden - 10-29-2012

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.


Re: RPL long vs. short names - Eric Rechlin - 10-29-2012

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.


Re: RPL long vs. short names - peacecalc - 10-30-2012

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).


Re: RPL long vs. short names - peacecalc - 10-30-2012

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.