From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-27-2005 06:41 PM
@shoneill wrote:
However, yoru comment that you've shaved 50% of your time quite simply frightens me.
09-27-2005 10:06 PM
Well, Christian is in the lead now. His new times are 10329 and 5162.
Bruce
09-28-2005 01:00 AM - edited 09-28-2005 01:00 AM
Message Edited by shoneill on 09-28-2005 08:02 AM
09-28-2005 01:29 AM
09-28-2005 02:39 PM
@shoneill wrote:
Just shaved 17.5% off my prime number generation time.
Shane, you're really starting to breathe down my neck here, I was only able to squeeze another 5% improvement out of my prime generator 😄
09-29-2005 01:10 AM
09-30-2005 11:34 AM
09-30-2005 12:12 PM
09-30-2005 05:56 PM
Hi Chaos,
It was nice meeting you at NI week. 🙂
From the timing behavior in my code, you can tell that I generate all possible prime numbers in advance. On Bruce's test rig, the first run takes 10329ms and the later runs take 5162ms. From the difference, we can tell that the time to create the list of prime numbers takes about 5 seconds (the difference between the two numbers).
Since we are dealing with inputs of 16 decimal digits, we need to create a cache of all possible prime numbers up to 8 decimal digits (99999999), or about 100 millions. 😮
The above numbers are for Bruce's machine. On my 1GHz PIII the prime generation takes about 12 seconds and scaling to 333MHz, you should be able to generate all primes up to 100 millions in well under 40 seconds on your rig to be comparable (guessing wildely ;)). I would think that a ceiling of 2.4 million would be significantly faster. :).
09-30-2005 06:03 PM