RPL long vs. short names



#7

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.


#8

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

#9

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


#10

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

#11

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


#12

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Writing RPL programs on OS X Sean Freeman 18 767 11-30-2013, 03:59 PM
Last Post: Sean Freeman
  HP Prime - Short "learning" modules CR Haeger 1 158 11-27-2013, 02:13 PM
Last Post: Jonathan Cameron
  I have written a short introduction to the HP Prime Michael Carey 7 370 11-18-2013, 08:04 PM
Last Post: Michael Carey
  48G vs 49G+ User RPL Speed Comparison John Colvin 7 289 11-16-2013, 10:07 PM
Last Post: Han
  RPL 32 David Hayden 4 247 11-11-2013, 11:34 AM
Last Post: David Hayden
  HP Prime: Long integers (continued) Helge Gabert 2 198 11-07-2013, 11:24 AM
Last Post: Helge Gabert
  HP Prime: Pass "Long" Integers to a Program Helge Gabert 6 359 11-03-2013, 01:12 PM
Last Post: Helge Gabert
  HP Prime polynomial long division bluesun08 13 557 10-30-2013, 03:29 AM
Last Post: parisse
  HP-65 short circuit Ignacio Sánchez 2 207 10-22-2013, 08:27 AM
Last Post: Ignacio Sánchez Reig
  HHC / HP Museum Programming Contest for RPN and RPL machines Gene Wright 18 737 09-22-2013, 09:39 AM
Last Post: Miguel Toro

Forum Jump: