Vangelis Banos 4ca10a22d8 Optimise WarcWriter.maybe_size_rollover()
Every time we write WARC records to file, we call
`maybe_size_rollover()` to check if the current WARC filesize is over
the rollover threshold.
We use `os.path.getsize` which does a disk `stat` to do that.

We already know the current WARC file size from the WARC record offset
(`self.f.tell()`). There is no need to call `os.path.getsize`, we just
reuse the offset info.

This way, we do one less disk `stat` every time we write to WARC which
is a nice improvement.
2019-06-11 09:31:54 +00:00
..
2019-05-14 15:51:11 -07:00
2019-03-21 14:17:24 -07:00
2019-04-24 13:14:12 -07:00
2019-03-21 14:17:24 -07:00
2019-03-21 14:17:24 -07:00
2019-03-21 14:17:24 -07:00
2019-03-21 14:17:24 -07:00
2019-01-21 10:37:09 -08:00