Jump to content

Recommended Posts

Posted

http://server43.totalchoicehosting.com/~te...n/ministats.cgi

 

 

i finally made those live game ratings that i was asking for

but i must admit its a bit slow to load. But since i only know perl and not something else it will have to stay like this.

 

can someone help me optimize my code so it loads faster.. the main program is.. that its basically looking up 1 website for each member of the game. and divides the details with an array.

the code that is laggy the most is the get function.

 

--

print header();

foreach $i (@list){

@doc = split(/ /,get("http://207.46.203.186/AOM_XPACK/query/query.aspx?"));

@temp = split(/=/,$doc[119]);

$temp[1]=~ s/\D//g;

---

 

see the get? hehe

anyone know faster command then this one i used

  • 5 weeks later...
Posted

One experiment that may be worth trying would be to download everything in a tight loop to a local array and THEN parse the array with your splits.

 

Often in programming the

Get a line

Process it

Get another

approach has a lot of overhead whereas getting the whole thing and then processing the whole thing reduces that overhead making it faster.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...