Solved

perl versus c

Posted on 2000-03-05
2
145 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now