Skip to content

Avoid repeated reads in get_file_metadata #209

Description

@panhania

Currently get_file_metadata can open and read contents of the entire file twice: one for doing regex matching and one for calculating the digest. Given that I/O is probably the slowest part of the code, we should avoid it whenever possible and so the code should be refactored to open and read the file only once.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions