473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 4791
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Premshree Pillai | last post by:
Hello, I recently wrote a Perl version of pyAlbum.py -- a Python script to create an image album from a given directory -- plAlbum.pl . It made me realize how easy-to-use Python is. ...
2
by: nikhil w | last post by:
hi i am new to perl and would like some guidance about what books to read and how to go about knowing this language.. thanks to all replies
0
by: Matt Johnson | last post by:
Hello, Recently we made some fairly significant upgrades...going from Solaris 5.6 to Solaris 5.8 (Solaris 8). Along with this, we decided to upgrade from perl 5.005_03 directly to perl 5.6.0. ...
1
by: C. Olive | last post by:
Environment: Classic ASP running on IIS v5.1 Scripting Language: VBScript I suppose someone would have to be somewhat familiar with Perl in order to answer this question specifically. If you...
0
by: Andrey Mishenin | last post by:
While accessing MySQl data base by means of perl the value of variable $! sometimes equals " Resource temporarily unavailable". At the mean time everything works correct. What does that mean?...
10
by: Hendry Taylor | last post by:
I wrote a perl script and tested it on windows and it works fine. I then moved it onto a solaris machine and now it says that there is a syntax error with the following line of code: $user1 =...
0
by: Titof | last post by:
Hello, i want to create an active webpage that displays the status of users quotas on a volume of a server. I installed IIS on this server and installed Win2k server Resource Kit because the...
9
by: A.M | last post by:
Hi, Is there any efficient online resource or book that help experienced Perl programmers to Python? Thank you,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.