mirror of https://github.com/ekimekim/wubloader
parse_segment_path: Use datetime.strptime instead of dateutil.parser
strptime is much faster but can't handle as varied formats. But in this case we fully control the format, so there's no reason not to use it. Profiling suggests we spend about 80% of our time in get_best_segments just parsing dates, so this is a signifigant performance gain.pull/35/head
parent
bcdb268ce8
commit
bf08aa29b8
Loading…
Reference in New Issue