HP Forums

Full Version: RPL long vs. short names
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

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.


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.


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.


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


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.