mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1136] audio_config: search sparse markers efficiently (AUDIO-CONFIG-SCAN-SEARCH) #1170
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1170
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1136
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/audio-config-scan-search📝 Commits (1)
92d90a0audio_config: search sparse markers efficiently (AUDIO-CONFIG-SCAN-SEARCH)📊 Changes
2 files changed (+55 additions, -1 deletions)
View changed files
➕
tests/test_audio_config_scan_search.py(+51 -0)📝
tools/audio_config.py(+4 -1)📄 Description
Item ID:
AUDIO-CONFIG-SCAN-SEARCHSpeeds up sparse audio config scanning in
tools/audio_config.py:scan()by jumping directly between candidate markers withbytes.find(MARKER_1, ...)instead of slicing at every byte offset.Changes
tools/audio_config.py(scan): Replaces per-byteblob[pos:pos + 2] == MARKER_1checks withpos = blob.find(MARKER_1, pos, end + 2), preserving exact record parsing and non-matching advancement (pos += 1).tests/test_audio_config_scan_search.py: Adds synthetic sparse-input work checks (ObservedBytesslice count) and parity tests comparing valid/overlapping/truncated markers against expected scan results.Verification
python -I scripts/check_no_game_data.py).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.