[SOLVED] DSRN (dog slow roman numerals)
|
06-11-2014, 05:20 PM
(This post was last modified: 06-23-2014 07:08 AM by HP67.)
Post: #1
|
|||
|
|||
[SOLVED] DSRN (dog slow roman numerals)
This program seems like it takes much longer than it should to run. How long should it take? I have no idea, but not as long as it is taking. I have another program (not shown) that does some string substitution (replacement) and the seat of the pants feeling is it's faster than it should be. I would have thought that scanning for substrings and replacing them with unlike-sized substrings would be one of the more expensive operations. But this simple piece of code that just concatenates a few strings can't get out of its own way.
As you can see there is not a whole lot going on in this code. 1000 tests of converting 2014 (5 while loop executions) to roman numerals in a loop take 970.3 seconds on a 50g on USB power. Code: %%HP: T(3)A(R)F(.); What is the source of the expression "dog slow?" The dogs I had were anything but slow. And even a slow dog is faster than a man can run. It ain't OVER 'till it's 2 PICK |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)