Solved

perl versus c

Posted on 2000-03-05
2
149 Views
Last Modified: 2010-03-05
Hello i have been told for a high usage site i should have my login script in c instead of perl.

my login script is approx 20kb on a solaris with 220mb bandwidth.

my questions are

1. how many logins could this forseeably cope with in say 1 second ?
2. would c be any better or faster?

thanks for your asdvice gerald.
0
Comment
Question by:wampy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2585752
1. how long does your script take to run?
2. c may be faster, particularly if your script spends a lot of time on calculations.
0
 
LVL 8

Accepted Solution

by:
jhurst earned 100 total points
ID: 2586199
ozo is almost always right, however this time I disagree with him.  So many web servers are now optimized for perl that even though C is probably slightly more efficient itself, by the time it is on a server it is probably less efficient.  Either way, there will be no problem, the time take to execute a login in scrip will not matter.

Now, your bandwidth is much more likely to be a limit- just find out how big each transaction is, by looking at the generated pages and divide it into the bandwidth available.

0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question