Post Reply 
Basic RPL question
02-29-2016, 12:39 AM (This post was last modified: 02-29-2016 01:14 AM by wojtek.)
Post: #24
RE: Basic RPL question
(02-28-2016 11:28 PM)David Hayden Wrote:  
Quote:Test1: 18.37 seconds
Test2: 2.12 seconds
Wow that's quite a difference. Does anyone know why the algebraic is so much slower? I would have thought that they'd be nearly identical.

Probably and almost sure because parsing the algebraics takes time. Calculator has to extract variables and operators, arrange them in a proper queue and perform.
The more complicated algebraics the bigger time difference especially if the algebraics is executed in a loop.
A simple optimisation of the code would help here (I mean parsing the expression and storing the result) because the parsing could be performed only once. But unfortunately the code in 50g does not seem to be optimised.
Coding in RPN means the user makes parsing the algebraics and the calculator only executes the operations
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Basic RPL question - Graan - 02-25-2016, 03:05 PM
RE: Basic RPL question - rprosperi - 02-25-2016, 03:19 PM
RE: Basic RPL question - David Hayden - 02-25-2016, 03:36 PM
RE: Basic RPL question - wojtek - 02-25-2016, 04:25 PM
RE: Basic RPL question - Graan - 02-25-2016, 07:53 PM
RE: Basic RPL question - David Hayden - 02-25-2016, 08:32 PM
RE: Basic RPL question - wojtek - 02-25-2016, 08:48 PM
RE: Basic RPL question - Graan - 02-25-2016, 08:54 PM
RE: Basic RPL question - wojtek - 02-25-2016, 08:35 PM
RE: Basic RPL question - Graan - 02-28-2016, 09:56 AM
RE: Basic RPL question - wojtek - 02-28-2016, 10:14 AM
RE: Basic RPL question - Paul Dale - 02-28-2016, 10:13 AM
RE: Basic RPL question - Graan - 02-28-2016, 01:02 PM
RE: Basic RPL question - DavidM - 02-28-2016, 03:27 PM
RE: Basic RPL question - rprosperi - 02-28-2016, 06:13 PM
RE: Basic RPL question - Graan - 02-28-2016, 07:00 PM
RE: Basic RPL question - Han - 02-28-2016, 02:26 PM
RE: Basic RPL question - Graan - 02-28-2016, 03:22 PM
RE: Basic RPL question - Graan - 02-28-2016, 05:05 PM
RE: Basic RPL question - DavidM - 02-28-2016, 06:23 PM
RE: Basic RPL question - Tugdual - 02-28-2016, 10:01 PM
RE: Basic RPL question - David Hayden - 02-28-2016, 11:28 PM
RE: Basic RPL question - DavidM - 02-29-2016, 12:30 AM
RE: Basic RPL question - wojtek - 02-29-2016 12:39 AM
RE: Basic RPL question - Claudio L. - 02-29-2016, 03:48 AM
RE: Basic RPL question - Han - 02-29-2016, 04:19 AM
RE: Basic RPL question - DavidM - 02-29-2016, 05:22 AM



User(s) browsing this thread: 1 Guest(s)