09-04-2011, 23:55
Pages: 1 2
09-05-2011, 07:43
(09-04-2011, 23:55)SuperNovaAO Wrote: [ -> ]tl;dr my code doesn't work?!
Your code *probably* does work but it isn't faster.
09-21-2011, 12:28
Sorry to bump this, but it just had me a intrigued. Are you saying that the 'strTok' function was run 10,000 times and finished in less than 1 millisecond? Are you using a NASA computer? Because strings generally take more time to process than integers due to their flexibility.
09-21-2011, 12:39
(09-21-2011, 12:28)Phl3x_ Wrote: [ -> ]Sorry to bump this, but it just had me a intrigued. Are you saying that the 'strTok' function was run 10,000 times and finished in less than 1 millisecond? Are you using a NASA computer? Because strings generally take more time to process than integers due to their flexibility.
No, in 1 server frame, 50ms. And I got a 6 core @ 3,2ghz
09-21-2011, 12:43
Probably because there is a preprocessor in cod which transforms the code inside the gsc first.
09-23-2011, 07:08
If these were tested in another, more common language, Nova's way would probably be a bit faster. However in all languages, it will be less accurate because many floats cannot be represented exactly, and by performing calculations on them, it would skew the results. Also, calculations with floats is a fairly processor intensive task, so strings would be the best option for this.
09-23-2011, 07:56
lol, I know that this is old but seriously @AZUMIKKEL? You didn't know what strTok did? O__o
09-23-2011, 07:57
Pages: 1 2