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.
In reply to Re^2: code optimization
by BrowserUk
in thread code optimization
by arivu198314
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |