Skip to content

Use f.seek instead of f.read for case when no output required #1

@varelaz

Description

@varelaz

Instead of empty reads you can use relative seek which would have the same effect but would be much faster. That's important if file is several gigabytes.

def _f_seek(self, l):
    self._f.seek(l, 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions