Skip to content

Do not compress broadband waveforms#74

Merged
lispandfound merged 5 commits intopegasusfrom
no_compress_broadband
Dec 3, 2025
Merged

Do not compress broadband waveforms#74
lispandfound merged 5 commits intopegasusfrom
no_compress_broadband

Conversation

@lispandfound
Copy link
Contributor

Small PR that undoes the setting to use lossless compression for broadband waveforms. The waveform does not get meaningfully smaller and makes it slower to read.

Copilot AI review requested due to automatic review settings December 1, 2025 00:13
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @lispandfound, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request optimizes the handling of broadband waveforms by removing the lossless compression settings. The author observed that applying compression did not significantly reduce the waveform file size and, conversely, introduced a performance overhead during read operations. By disabling compression, the PR aims to enhance the efficiency and speed of processing these specific data types.

Highlights

  • Compression Removal: Disabled zlib compression and its complevel setting for broadband waveforms in workflow/scripts/bb_sim.py.
  • Performance Improvement: The change is intended to improve read performance for broadband waveforms, as compression was found not to meaningfully reduce file size and made reading slower.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the lossless compression for broadband waveforms when they are saved. According to the description, this change is intended to improve read performance, as the compression did not offer significant file size reduction. The modification in workflow/scripts/bb_sim.py correctly removes the compression and complevel encoding options. The change is straightforward, targeted, and achieves its stated goal. I find no issues with this implementation.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes zlib compression from broadband waveform output to improve read performance. The compression provided minimal storage benefits while significantly slowing down data access. This aligns the broadband output handling with the existing patterns for high-frequency and low-frequency waveform outputs, which also don't use compression. Fletcher-32 checksums are retained to ensure data integrity for long-term storage.

  • Removed zlib compression (level 5) from broadband waveform encoding
  • Retained Fletcher-32 checksums for data integrity verification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joelridden joelridden self-requested a review December 1, 2025 02:06
@lispandfound lispandfound merged commit 9e8279e into pegasus Dec 3, 2025
7 checks passed
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.

6 participants