470,831 Members | 1,997 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,831 developers. It's quick & easy.

Why does Perl use more resource than Php?

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
Jul 17 '05 #1
9 4596
M

"I Report, You Decide" <te**@test.com> wrote in message
news:Ln**********************@bgtnsc05-news.ops.worldnet.att.net...
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?


yabb != perl. Did the hosting service "ban" perl? That should answer your
question.
Jul 17 '05 #2
"I Report, You Decide" <te**@test.com> wrote:
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.


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
Jul 17 '05 #3
It was a dark and stormy night, and I Report, You Decide managed to scribble:
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.


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
Jul 17 '05 #4
> "I Report, You Decide" <te**@test.com> wrote in message
news:Ln**********************@bgtnsc05-news.ops.worldnet.att.net...
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?
yabb != perl. Did the hosting service "ban" perl? That should answer

your question.


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
Jul 17 '05 #5
On Wed, 24 Dec 2003 09:15:47 GMT
"I Report, You Decide" <te**@test.com> wrote:
"I Report, You Decide" <te**@test.com> wrote in message
news:Ln**********************@bgtnsc05-news.ops.worldnet.att.net.
..
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?


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

your
question.


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


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.
Jul 17 '05 #6
On Tue, 23 Dec 2003 23:40:27 +0000, I Report, You Decide wrote:
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 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
Jul 17 '05 #7
I Report, You Decide wrote:
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.


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.

Jul 17 '05 #8
With total disregard for any kind of safety measures "I Report,
You Decide" <te**@test.com> leapt forth and uttered:
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.


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.....
Jul 17 '05 #9
I Report, You Decide wrote:
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.


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
Jul 17 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Premshree Pillai | last post: by
2 posts views Thread by nikhil w | last post: by
reply views Thread by Matt Johnson | last post: by
10 posts views Thread by Hendry Taylor | last post: by
reply views Thread by Titof | last post: by
9 posts views Thread by A.M | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.