Skip to content
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

Introduce new mechanism to incrementally drain from a memory_recording #6187

Merged
merged 10 commits into from
May 2, 2024

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented May 1, 2024

What

The main piece of work, plumbing through drain was relatively straight-forward.

In addition, when creating an example that roughly models the gradio streaming workflow, I realized it would be helpful to introduce a decorator which simplifies setting up an isolated recording stream, and works with the sort of streaming generators we expect to see with Gradio.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@jleibs jleibs marked this pull request as ready for review May 1, 2024 20:09
@@ -53,6 +53,14 @@ def num_msgs(self) -> int:
"""
return self.storage.num_msgs() # type: ignore[no-any-return]

def drain_as_bytes(self) -> bytes:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't love this name but was struggling to come up with a better one.

@teh-cmc teh-cmc self-requested a review May 2, 2024 08:09
crates/re_sdk/src/log_sink.rs Show resolved Hide resolved
rerun_py/rerun_sdk/rerun/memory.py Show resolved Hide resolved
rerun_py/src/python_bridge.rs Outdated Show resolved Hide resolved
rerun_py/rerun_sdk/rerun/recording_stream.py Show resolved Hide resolved
@jleibs jleibs merged commit 7e399bd into main May 2, 2024
35 of 36 checks passed
@jleibs jleibs deleted the jleibs/memory_stream_flush branch May 2, 2024 17:58
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