Repository navigation
Conversation
The host only reads the latest values; a queue grew while nobody read it and allocated on every tick. The values are now copied field by field into a buffer that was written before, which does not allocate once warm, and not at all when the host does not listen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HKbSZft9tvQ2sm9KeSchMX
This branch has not been deployed
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.
Part of the ossia score mixer work (ossia/score
feature/mixer).The ossia binding handed control values to the host through unbounded queues that the host drained down to their last element. Each tick's enqueue copied the whole tuple of values, allocating on the audio thread whenever a value holds memory (e.g. a
std::vector<float>output), and grew without bound while nothing read it.They are now
ossia::triple_buffers (ins_buffer,outs_buffer):notify_uimoves tocontrols_queueand gates the inputs as well as the outputs: when the host installs no reader, nothing is copied.Needs ossia/libossia
feature/mixer, which givestriple_bufferits in-place write and read and gives the trivially copyable case the same interface, so the binding also builds withAVND_USE_TUPLET_TUPLE.🤖 Generated with Claude Code
https://claude.ai/code/session_01HKbSZft9tvQ2sm9KeSchMX