Hedir Web Directory and Webmaster Forum
Search  Register  LoginLogin 
Welcome to Hedir community. Hedir is a community helping to rank the sites on the basis of real customer feedback. Ranking is not based on automated checking of site properties but on the basis of experience with the site/business as a whole. Explore more about Hedir.
Home > Community > Offtopic >

Speeding up code
Author Message
Add to del.icio.us
Add to YahooMyWeb
Add to Digg
Add to Technorati
Add to Reddit
Add to Furl
Add to Spurl
Add to Simpy
Add to Blinklist
Add to Wink
Guest







100 Hedir Points

Guest's Home Page

web directory author feed
Author Feeds (Beta)
PostPosted: Mon Sep 04, 2006 4:41 am    Post subject: Speeding up code
 
 

I know not very many people post code in this forum, but since so many people at HEDir know about cgi I hoped someone here might be able to help me out.

I'm writing the following cgi script and was wondering if anyone could help me know if there is a faster/better way of doing this:

Code:

open(FH,"file1.txt")        # OPEN file1.txt, ABOUT 50 LINES OF TEXT
while (my $line = <FH>) {
    print $line;            #PRINT ONE LINE AT A TIME
}
close(FH);

(INSERT INFO FROM A SHORT FORM HERE)

open(FI,"file2.txt")        # OPEN file2.txt, ABOUT 600 LINES OF TEXT
while (my $line = <FI>) {
    print $line;            #PRINT ONE LINE AT A TIME
}
close(FI);


This form may be processed between 20 and 50 times per person, and it might get a couple of hundred to 1000 visitors, maybe more, per day. I expect hypershort attention spans too. I'd like to be able to keep visitors coming back.
 
offthedome


offthedome

Joined: 14 May 2006
Posts: 164
Location: Columbus, OH
1446 Hedir Points

offthedome's Home Page

web directory author feed
Author Feeds (Beta)
PostPosted: Mon Sep 04, 2006 4:42 am    Post subject:
 
 

That was me up there.
_________________
Contact Table Generator
Email address munger
Need translators for sites. PM me for details.
 
All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Our Features
» Web 2.0 tools
» Get a FREE blog
» Openmic - (Hedir Wiki)
» Hedir Points (Total: 2756904)


Community Feed
    rss feed

Terms of Use | About Us | Link to us | Web Directory
This work is licensed under cc by 2.0