Skip to content

Faster Download ZIPs: store compressed files, deflate text at level 1 - #185

Open
t0mdavid-m wants to merge 1 commit into
developfrom
claude/project-thread-bo4tte
Open

t0mdavid-m wants to merge 1 commit into
developfrom
claude/project-thread-bo4tte

Conversation

@t0mdavid-m

Copy link
Copy Markdown
Member

Requested by Tom · project thread

What it changes

The Download ZIP buttons (one run, and all runs on the Download page) pack the ZIP when the button is clicked, and the browser waits until that is done. All files were deflated at the default level, including the parquet caches and gzipped files of a run, which are compressed already: that took most of the time and saved almost nothing.

Now:

  • already compressed files (.pq, .parquet, .gz, .zip, ...) go into the ZIP as they are;
  • text files (mzML, TSV, FASTA, msalign, ...) are deflated at level 1, about twice as fast as level 6 and only slightly larger.

Measured

All six example runs (211 MB), packed as the all-runs download does:

time ZIP size
before 10.5 s 140 MB
after 2.8 s 157 MB

The ZIPs open with any unzip tool as before; nothing changes on screen, so there are no screenshots.

Tests

tests/test_result_download.py gains a test that a parquet file is stored and a TSV deflated, with both contents intact. python -m pytest tests/test_result_download.py: 7 passed.


Generated by Claude Code

The Download buttons pack the ZIP when they are clicked. Parquet caches and
gzipped files were deflated again at the default level, which took most of
the time and saved almost nothing. They now go into the ZIP as they are, and
text files (mzML, TSV, FASTA) are deflated at level 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepJR6i7XoU4V3HUarX
@t0mdavid-m t0mdavid-m self-assigned this Nov 5, 2026
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 78b44477-176c-4cab-b475-2db23116e6b8
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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