Skip to content

Conversation

ptpt
Copy link
Member

@ptpt ptpt commented Mar 25, 2025

Optimizations in this PR:

  1. extract GPS and camera make/model in one file open session
  2. skip samples smaller than 16 bytes which are unlikely to be GPS samples
  3. parse samples of interest only
❯ sz ~/Downloads/CAMM                                                        
9.0G ~/Downloads/CAMM

Before:

❯ time uv run -m tests.cli.camm_parser ~/Downloads/CAMM
uv run -m tests.cli.camm_parser ~/Downloads/CAMM  7.76s user 0.17s system 86% cpu 9.135 total

After:

❯ time uv run -m tests.cli.camm_parser ~/Downloads/CAMM
uv run -m tests.cli.camm_parser ~/Downloads/CAMM  3.23s user 0.16s system 81% cpu 4.182 total

@ptpt ptpt merged commit d01574c into main Mar 26, 2025
19 checks passed
@ptpt ptpt deleted the improve-camm-parsing-performance branch March 26, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants