in reply to Why is this code so much slower than the same algorithm in C?
That seems hardly a fair comparison, does it?
How long did it take you to compile, link and execute this C-program (and you are not allowed to put it in a batch or shell script, because that is part of another language)? I bet the difference would be much less.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is this code so much slower than the same algorithm in C?
by wanna_code_perl (Friar) on Dec 09, 2008 at 07:59 UTC | |
by BrowserUk (Patriarch) on Dec 09, 2008 at 09:14 UTC | |
by pobocks (Chaplain) on Dec 09, 2008 at 13:38 UTC | |
by BrowserUk (Patriarch) on Dec 09, 2008 at 14:06 UTC | |
by CountZero (Bishop) on Dec 09, 2008 at 08:28 UTC |