in reply to Re: code optimization
in thread code optimization
Except.. it's pretty hard to compete with the cost of a division(which is rather low).
Agreed. Almost no matter how this is coded, the runtime is going to be dominated by the time taken to read the data from the file. It's doubtful that you could achieve a meaningful saving even by moving to C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: code optimization
by spx2 (Deacon) on Nov 04, 2011 at 12:53 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2011 at 13:15 UTC | |
by spx2 (Deacon) on Nov 04, 2011 at 14:08 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2011 at 14:31 UTC | |
by spx2 (Deacon) on Nov 04, 2011 at 15:27 UTC | |
|