Jump to content

Which is fast, for math purposes


cooldude832

Recommended Posts

Lets say (hypothethically) I have an array of 2000 numbers and I need to perform 1000 actions on these numbers.

and my server allows me to upload c/c++ scripts.  Would it be faster to use php to do the 2 million math operations or allow

C/C++ to run it and use the return of that as the done function.  I'm not asking is C/C++ faster than php i'm asking is the bonus from going to

C/C++ enough to compensate for the function exec()

Link to comment
https://forums.phpfreaks.com/topic/56858-which-is-fast-for-math-purposes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.