Connecting Tech Pros Worldwide Forums | Help | Site Map

Why does Perl use more resource than Php?

I Report, You Decide
Guest
 
Posts: n/a
#1: Jul 17 '05
A hosting service lungcapage has banned yabb, because it takes too much
CPU/memory, but phpBB is fine. Is that perl/php or the script itself? why
perl sucks more resource of a server than php? i thought only mod-perl will
suck not regular perl.

--
I am Social Liberal-Fiscal Conservative
Social Liberal: Forgiveness, Acceptance of Difference, Universal Healthcare,
Free College Education for Everyone
Fiscal Conservative: Small Government, No Tax for Low Income



M
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Why does Perl use more resource than Php?



"I Report, You Decide" <test@test.com> wrote in message
news:Ln4Gb.232551$Ec1.8219387@bgtnsc05-news.ops.worldnet.att.net...[color=blue]
> A hosting service lungcapage has banned yabb, because it takes too much
> CPU/memory, but phpBB is fine. Is that perl/php or the script itself?[/color]

yabb != perl. Did the hosting service "ban" perl? That should answer your
question.


ctcgag@hotmail.com
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Why does Perl use more resource than Php?


"I Report, You Decide" <test@test.com> wrote:[color=blue]
> A hosting service lungcapage has banned yabb, because it takes too much
> CPU/memory, but phpBB is fine. Is that perl/php or the script itself? why
> perl sucks more resource of a server than php? i thought only mod-perl
> will suck not regular perl.[/color]

use Blatant::Liar;
print "yabb was so much better that many more people were using it\n";
print "so it consumed lots of resources\n";
__END__

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
Gregory Toomey
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Why does Perl use more resource than Php?


It was a dark and stormy night, and I Report, You Decide managed to scribble:
[color=blue]
> A hosting service lungcapage has banned yabb, because it takes too much
> CPU/memory, but phpBB is fine. Is that perl/php or the script itself? why
> perl sucks more resource of a server than php? i thought only mod-perl
> will suck not regular perl.
>[/color]

Do like I do - run user mode linux with root access for about the same price as a virtual ISP. Run whatever you like.

See http://user-mode-linux.sourceforge.net/uses.html for a list of UML ISPs.

gtoomey
I Report, You Decide
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Why does Perl use more resource than Php?


> "I Report, You Decide" <test@test.com> wrote in message[color=blue]
> news:Ln4Gb.232551$Ec1.8219387@bgtnsc05-news.ops.worldnet.att.net...[color=green]
> > A hosting service lungcapage has banned yabb, because it takes too much
> > CPU/memory, but phpBB is fine. Is that perl/php or the script itself?[/color]
>
> yabb != perl. Did the hosting service "ban" perl? That should answer[/color]
your[color=blue]
> question.
>
>[/color]

the hosting corp does not bann perl, but banns yabb, because saying it takes
TOO MUCH CPU/memory. i just wnat to know if the yabb problme is a perl
problem or the problme of the yabb script only


James Willmore
Guest
 
Posts: n/a
#6: Jul 17 '05

re: Why does Perl use more resource than Php?


On Wed, 24 Dec 2003 09:15:47 GMT
"I Report, You Decide" <test@test.com> wrote:
[color=blue][color=green]
> > "I Report, You Decide" <test@test.com> wrote in message
> > news:Ln4Gb.232551$Ec1.8219387@bgtnsc05-news.ops.worldnet.att.net.
> > ..[color=darkred]
> > > A hosting service lungcapage has banned yabb, because it takes
> > > too much CPU/memory, but phpBB is fine. Is that perl/php or the
> > > script itself?[/color]
> >
> > yabb != perl. Did the hosting service "ban" perl? That should
> > answer[/color]
> your[color=green]
> > question.
> >
> >[/color]
>
> the hosting corp does not bann perl, but banns yabb, because saying
> it takes TOO MUCH CPU/memory. i just wnat to know if the yabb
> problme is a perl problem or the problme of the yabb script only[/color]

This all sounds like yabb problem :-)

Seriously .... if you want to find out where the "problems" are with
yabb, then run some benchmarks and find out. You could, if using a
*NIX system, use the 'time' command to see which is using more cpu
time. For a strictly Perl look at the situation, check out the
various Devel modules to aid in finding out where yabb "bottlenecks"
are.

In general, this really isn't a Perl issue - it's one you're having
with your host and is based upon what *they* have told you. Find out
for yourself and then decide if *they* are right :-)

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
Bugs, pl. n.: Small living things that small living boys throw
on small living girls.
Dave Richards
Guest
 
Posts: n/a
#7: Jul 17 '05

re: Why does Perl use more resource than Php?


On Tue, 23 Dec 2003 23:40:27 +0000, I Report, You Decide wrote:
[color=blue]
> A hosting service lungcapage has banned yabb, because it takes too much
> CPU/memory, but phpBB is fine. Is that perl/php or the script itself? why
> perl sucks more resource of a server than php? i thought only mod-perl will
> suck not regular perl.[/color]

I think it depends on whether you're running mod-perl/mod-python or CGI
versions. mod-* must have the advantage over CGIs.

I imagine you will find that yabb the application simply needs a lot more
resources than phpBB. In particular, IIRC, yabb uses flat files to store
the forums, whereas phpBB uses MySQL. That can place a huge strain on the
server.

Dave
Keith Bowes
Guest
 
Posts: n/a
#8: Jul 17 '05

re: Why does Perl use more resource than Php?


I Report, You Decide wrote:[color=blue]
> A hosting service lungcapage has banned yabb, because it takes too much
> CPU/memory, but phpBB is fine. Is that perl/php or the script itself? why
> perl sucks more resource of a server than php? i thought only mod-perl will
> suck not regular perl.
>[/color]

That's strange. I would have thought that Perl would be more efficient,
due to PHP being easier and having more modules that are included
without invocation. But I guess it's possible that hard to read doesn't
necessarily mean fast to run.

Phil Roberts
Guest
 
Posts: n/a
#9: Jul 17 '05

re: Why does Perl use more resource than Php?


With total disregard for any kind of safety measures "I Report,
You Decide" <test@test.com> leapt forth and uttered:
[color=blue]
> A hosting service lungcapage has banned yabb, because it takes
> too much CPU/memory, but phpBB is fine. Is that perl/php or the
> script itself? why perl sucks more resource of a server than
> php? i thought only mod-perl will suck not regular perl.
>[/color]

Perl is usually run as a CGI module which will consume more server
RAM than a scripting interpreter which is running as part of the
server process (as PHP almost always is). When PHP is run as a CGI
it suffers from pretty much the exact same overhead problem.

Using files for storage will always be more server-intensive than a
proper DB server though. Regardless of the language.

--
There is no signature.....
Stewart Campbell CS2002
Guest
 
Posts: n/a
#10: Jul 17 '05

re: Why does Perl use more resource than Php?


I Report, You Decide wrote:[color=blue]
> A hosting service lungcapage has banned yabb, because it takes too much
> CPU/memory, but phpBB is fine. Is that perl/php or the script itself? why
> perl sucks more resource of a server than php? i thought only mod-perl will
> suck not regular perl.
>[/color]

The major difference there is YABB is flat file, phpBB uses a database.

YABB is older generation software, YABBSe and now SMF replace that, in
PHP with a database backend. Many message boards which use flat file
are banned on a large number of hosts, including UBB, YABB, etc.

Anything with a database backend, is (normaly) going to be much quicker
and less resource intensive than a flat file version.

Stewart
Closed Thread


Similar PHP bytes