Join us at IRC!
Become the change you seek in the world. - Gandhi
Thursday, September 09, 2010
Navigation
Members Online
Total Online: 50
Web Spiders: 17
Guests Online: 41
Members Online: 9

Registered Members: 50572
Newest Member: thefatlord
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Timed Challenge (Python)

yours31f
Member



Posts: 1611
Location: Dallas Texas
Joined: 27.04.07
Rank:
God
Posted on 19-02-10 16:11
Well the issue I'm having is that my connection to HBH takes too long. I put a timer in my scblockedript and my algorythm to solve challenge 2 takes (apox .0019s) and my total scblockedript takes about 2.2s. That leads me to believe that the only thing slowing it down is the connection. Now for the question: Is there a way to speed up this peice of scblockedript.


reqH = urllib2.Request('http://www.hellboundhackers.org/challenges/timed/timed2/index.php', None, headerHBH)
pageH = urllib2.urlopen(reqH)
source = pageH.read()


This peice of scblockedript tends to run at about 1.1 seconds. Problem is that on problem 2 you have two seconds you have to have two page loads. Any tips or anything I can read to let me know how to optimise this or am I just out of luck because my connection is too slow?


yours31f@live.com yours31f@yahoo.com
Author

RE: Timed Challenge (Python)

Compromise
Member

Posts: 224
Location:
Joined: 11.11.09
Rank:
Moderate
Warn Level: 30
Posted on 19-02-10 16:42
I've heard people complain about (the speed of) urllib2 before. Try porting your code to perl.


CrazySpai
minecraft.net
Author

RE: Timed Challenge (Python)

MoshBat
I am awesome



Posts: 4364
Location: Somewhere that I hope you think is witty.
Joined: 13.08.06
Rank:
Newbie
Warn Level: 100
Posted on 19-02-10 17:21
Compromise wrote:
Try porting your code to perl.

Or PHP.



mike_itns_dead@hotmail.com
Author

RE: Timed Challenge (Python)

Compromise
Member

Posts: 224
Location:
Joined: 11.11.09
Rank:
Moderate
Warn Level: 30
Posted on 19-02-10 17:35
MoshBat wrote:
Or PHP.


Good one.


CrazySpai
minecraft.net
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

 

By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.