Skip to content

Commit 7484d2a

Browse files
committed
merge
1 parent 4517862 commit 7484d2a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

profile.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ def parse_replays():
2121
replay = Replay(file)
2222

2323
# Problem with the profiler is that it adds conciderable amount of overhead
24-
cProfile.run("parse_replays()","replay_profile")
25-
stats = Stats("replay_profile")
26-
stats.strip_dirs().sort_stats("time").print_stats(30)
24+
# cProfile.run("parse_replays()","replay_profile")
25+
# stats = Stats("replay_profile")
26+
# stats.strip_dirs().sort_stats("time").print_stats(30)
2727

28-
# start = time.time()
29-
# for run in range(1,4):
30-
# parse_replays()
31-
# diff = time.time() - start
32-
# print diff
28+
start = time.time()
29+
parse_replays()
30+
diff = time.time() - start
31+
print diff
3332

3433
# ========================================
3534
# Results for March 1 2011

sc2reader/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __setitem__(self,key,value):
3030

3131

3232
from cStringIO import StringIO
33-
from os import SEEK_CUR,SEEK_END
33+
from os import SEEK_CUR, SEEK_END
3434
from struct import unpack
3535

3636
class ByteStream(object):

0 commit comments

Comments
 (0)