Skip to content

Enhance project performance consider cherry picking #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

firestrand
Copy link

@firestrand firestrand commented Jul 15, 2025

This PR is mostly to share the ideas and let others see the performance benefits.
The changes are around optimizing the QR rendering and frame order to minimize the size of the file.
The results are:

  • Content accuracy preserved 100%
  • Storage efficiency improves by 65.7%
  • Performance increases by 61%

On top of the frame reordering updated:

  • QR_BOX_SIZE from 5 to 3
  • QR_BORDER from 3 to 1

There are several scripts in examples for seeing what is going on:

  1. examples/concurrent_performance_demo.py - new concurrent frame odering measures multi-threaded vs single-threaded speed ups.
  2. examples/early_stopping_demo.py - demonstrates early stopping logic that cots the progressive resolution loop short when further gains are negligible
  3. examples/scaling_benchmarks.py - scaling across datasets from a few dozen to thousands of frames
  4. examples/compression_benchmark.py - end to end and apples to apples compression tests summarizing the size savings from frame ordering overhead
  5. examples/test_phase3_integration_demo.py - full integration of frame ordering into the build_video() including retrieval accuracy checks and error handling examples
  6. examples/test_frame_ordering_demo.py - walkthrough of the progressive resolution sorting algorithm through encoder integration up to the latest features and analyses

…nalysis, compression benchmarking, and concurrent frame ordering performance. Update .gitignore to exclude IDE directories, virtual environments, and various output files. Optimize QR settings in config.py for better frame utilization. Implement validation for frame ordering configurations in encoder.py. Introduce concurrent processing for frame ordering in a new module. Add comprehensive tests for compression benchmarks and concurrent frame ordering. This update improves performance, usability, and maintainability of the codebase.
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.

1 participant