Solved

perl versus c

Posted on 2000-03-05
2
144 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

772 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

9 Experts available now in Live!

Get 1:1 Help Now