Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 353 Bytes
import os
import time
import settings
#recsread = 0
recsmatch = 0
with open(settings.BIG_FILE, "r") as fh_in:
for line in fh_in:
#recsread += 1
if settings.TARGET_USERNAME in line: # What is the big O of this operation?
recsmatch += 1
#print("{r} {m}".format(r=recsread, m=recsmatch))