The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Latest S/W Version Runs Faster
08-06-2015, 02:44 PM (This post was last modified: 08-06-2015 02:44 PM by smp.)
Post: #1
Latest S/W Version Runs Faster
Hello all,

As you may know from my other postings, I am a proud owner of a new HP Prime, 2015 version.

Software version: 2015 6 17 (8151)
Hardware Version: C
CAS Version: 1.1.2-11
Operating System: V0.037.526

Right after I received my Prime, I entered a simple program to calculate the number of ways to make $1.00 from change:
Code:
EXPORT Dollar()
BEGIN
PRINT();
PRINT("Running...");
T:=TICKS:
C:=0;
FOR P FROM 0 TO 100 STEP 5 DO
  FOR N FROM 0 TO 20 DO
    FOR D FROM 0 TO 10 DO
      FOR Q FROM 0 TO 4 DO
        IF P+(N*5)+(D*10)+(Q*25)=100 THEN C:=C+1;
//          PRINT("P:" +P +"  " +"N:" +N +"  " +"D:" +D +"  " +"Q:" +Q);
        END;
      END;
    END;
  END;
END;
PRINT(C +" ways to make a dollar");
//MSGBOX(C +" ways_to_make_a_dollar");
T:=TICKS-T;
PRINT("elapsed time = " +T +" mSec");
END;

Back when I was on the S/W version that originally came in my Prime (6975), this program would regularly report 216x mSec. Now, with the latest S/W version installed (8151), the program regularly reports 212x mSec. That's an improved run time of ~40 mSec.

Has anyone else seen a measurable increase in speed with their programs when updating their S/W version?

smp
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Latest S/W Version Runs Faster - smp - 08-06-2015 02:44 PM



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