Repository navigation
Reduce per-frame allocations and release size - #4
Merged
Merged
Conversation
Contributor
|
Hey, just letting you know I saw this PR. I should get a chance to review this later today. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reuse snapshots and polling buffers, move inference arguments onto the stack, and allocate mouth-processing scratch space only when needed. Also avoid repeated resize and image-blending work. Model inputs, filtering, calibration and packet formats stay unchanged.
Strip unused symbol tables from Release binaries while keeping dynamic exports and crash backtrace names. Applying the same stripping to the current release saved about 2.54 MB installed and 227 KB compressed; the rebuilt package may differ.
Local checks matched the original preprocessing results, OSC packets and dashboard pixels. Concurrent snapshot checks and existing image/dashboard tests passed, and all changed C++ files compile for Linux ARM64. A full linked build and testing on the Frame are still pending. No test or workflow changes are included.