Skip to content

[WIP] adding gzip functionality#27

Open
ccbaumler wants to merge 1 commit into
mainfrom
gzip
Open

[WIP] adding gzip functionality#27
ccbaumler wants to merge 1 commit into
mainfrom
gzip

Conversation

@ccbaumler
Copy link
Copy Markdown
Contributor

I am making a bunch of ranktables and wanted them compressed to save on diskspace...

# Chunk function to limit the memory used by the hash_count dict and list
def write_chunk(chunk, output_file):
with open(output_file, "a", newline="") as csvfile:
if output_file.endswith('.gz'):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good - not sure you need the --gzip option after all? It doesn't seem to add much :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants