Re: Any progress yet? (was Re: Fast pi program?)
- From: "Alf P. Steinbach" <alfps@xxxxxxxx>
- Date: Fri, 31 Aug 2007 03:11:51 +0200
* mike3:
I'm still wondering if you could provide any help as to how I
could optimize the program. Remember the new upload
without the troublesome timezone library enabled is at:
http://www.mediafire.com/download.php?5ryt5g4mcyo
I've been fiddling with some things but they don't seem to
offer any significant speed boost.
What do you think I could do in order to make it faster,
anyway?
I clicked on the URL above, and it produced
"The quickkey you provided for file download was invalid. This is usually caused because the file is no longer stored on Mediafire. This occurs when the file is removed by the originating user or Mediafire."
Anyway, the way to optimize programs is (1) measure, (2) if optimization is then deemed necessary, first think about using better algorithms (this includes e.g. changing in-place instead of copying and creating values), and only secondly if at all, micro-optimizations such as trying to make loops fit in processor cache, thinking about page loading (you don't want the program to hop all over memory, but more localized and preferentially address-sequential access), and so on.
Cheers, & hth.,
- Alf
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.
- Follow-Ups:
- Re: Any progress yet? (was Re: Fast pi program?)
- From: mike3
- Re: Any progress yet? (was Re: Fast pi program?)
- References:
- Fast pi program?
- From: mike3
- Any progress yet? (was Re: Fast pi program?)
- From: mike3
- Fast pi program?
- Prev by Date: Any progress yet? (was Re: Fast pi program?)
- Next by Date: Re: Key-press detection
- Previous by thread: Any progress yet? (was Re: Fast pi program?)
- Next by thread: Re: Any progress yet? (was Re: Fast pi program?)
- Index(es):
Relevant Pages
|