|Re: 34s: Anyone have an instruction timing table? - example of a "slow" function|
Message #3 Posted by gene wright on 18 July 2011, 9:13 p.m.,
in response to message #2 by Paul Dale
It appears that the ROUND function is particularly slow. Any chance :-) this function could be reviewed for some optimization? :-) And, of course, please don't take this as any criticism at all!
If I store a long decimal value in R05 and take the little program
x<>X (acting as a NOP)
and starting with zero in X and run it for roughly 5 seconds, it counts up to 5613.
If I then replace the x<>X with ROUND, things get interesting.
Setting the display to FIX 0, the count after ~5 seconds is 3463.
With FIX 1, it reached 3330.
With FIX 2, it reached only 47.
With FIX 5, the count reached 46.
With FIX 11, the count was about the same.... 46.
And all the ones in between 3 and 11 seemed to count only up to 45-47 each.
The ROUND function surely makes the 34S run at a much slower pace.