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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.