GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   C++ faster than PHP? (https://gfy.com/showthread.php?t=374681)

More Booze 10-20-2004 07:36 AM

C++ faster than PHP?
 
Some people say that a script coded in C++ is way faster than PHP. And some say its not.

Whats your opinions on this?

Odin88 10-20-2004 07:44 AM

it is.

Naughty 10-20-2004 07:45 AM

Quote:

Originally posted by Odin88
it is.

Babaganoosh 10-20-2004 07:58 AM

It's faster at most things. Generally any compiled language is going to be faster.

rowan 10-20-2004 08:01 AM

It's not an easy question to answer, because they are languages... speed/delays depend completely on how you set up your server. eg, a server with PHP statically linked as an Apache module (ie: it's a part of Apache) may actually be comparable to, or faster than a server that has to load up an executable from cgi-bin each time.

Basic_man 10-20-2004 08:03 AM

It is.. that's why TTT is now TTT C :D

james_clickmemedia 10-20-2004 08:04 AM

In general C++ is faster than php...

frish 10-20-2004 08:10 AM

C++ is faster than PHP !

cezam 10-20-2004 08:13 AM

C is compiled, PHP is interpreted. Compiled languages are usually faster.

You can improve the speed of your PHP scripts by using Zend Encoder or Turck MM Cache.

garfield81 10-20-2004 09:22 AM

Quote:

Originally posted by cezam
C is compiled, PHP is interpreted. Compiled languages are usually faster.

You can improve the speed of your PHP scripts by using Zend Encoder or Turck MM Cache.

ditto

TheSaint 10-20-2004 10:13 AM

C++ is way faster for standalone programs of course being compiled.

But C++ running in cgi-bin can be slower than php, at least out of the box the old fashioned way.

So the answer is "maybe". Depends on what you are doing.

coolfuck 10-20-2004 10:15 AM

it is faster

pussyluver 10-20-2004 10:17 AM

So if you did everything right. C++ is faster.

There is always an exception somewhere to everything.

How about this. PHP is faster to code.

xclusive 10-20-2004 10:17 AM

it's faster but any code is only as good as the coder...

Scherfi 10-20-2004 10:31 AM

Quote:

Originally posted by TheSaint
C++ is way faster for standalone programs of course being compiled.

But C++ running in cgi-bin can be slower than php, at least out of the box the old fashioned way.

So the answer is "maybe". Depends on what you are doing.

agreed.

More Booze 10-20-2004 10:34 AM

Quote:

Originally posted by TheSaint
C++ is way faster for standalone programs of course being compiled.

But C++ running in cgi-bin can be slower than php, at least out of the box the old fashioned way.

So the answer is "maybe". Depends on what you are doing.

Thats what some programmers in another forum also said.

lb_vee 10-20-2004 10:39 AM

I read an article a couple of months back comparing C to Perl to PHP. There was something in there about C for loops being 50% faster then Perl and PHP.


All times are GMT -7. The time now is 05:30 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123