Skip to content

docs: Python sync client zero-copy buffers for mget - #288

Open
Aryex wants to merge 1 commit into
mainfrom
alexl/agent/python-mget-zero-copy-buffers
Open

docs: Python sync client zero-copy buffers for mget#288
Aryex wants to merge 1 commit into
mainfrom
alexl/agent/python-mget-zero-copy-buffers

Conversation

@Aryex

@Aryex Aryex commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Document the new buffers parameter on the Python sync client's mget() method, which enables zero-copy reads directly into caller-owned buffers.

⚠️ Attention: This PR was generated automatically. Verify that all relevant pages have been updated.

Source Commits

  • e2c088d — feat(python-sync): add zero-copy buffers to mget (#6367)

Changes

  • Added "Zero-Copy Buffers" section to the Synchronous Client how-to page (how-to/synchronous-connection.mdx)
  • Documents both single-key get(key, buffer=...) and multi-key mget(keys, buffers=...) patterns
  • Includes complete code examples, return value semantics, and buffer requirements

Context

PR #6367 adds an optional buffers argument to the sync Python client's mget so values are read straight into caller-owned buffers with no intermediate allocation. This is a performance optimization for large multi-key reads (KV-cache blobs, embeddings). The feature is sync-client only and opt-in — existing mget(keys) behavior is unchanged.

cc @ksmotiv8


This PR was generated by the automated documentation pipeline.

@Aryex Aryex added AI Generated documentation Improvements or additions to documentation python labels Jul 26, 2026
@Aryex
Aryex force-pushed the alexl/agent/python-mget-zero-copy-buffers branch from 6c61b11 to e60a6fe Compare July 26, 2026 21:27
@Aryex
Aryex requested a review from xShinnRyuu July 27, 2026 14:46
@Aryex Aryex self-assigned this Jul 27, 2026
@Aryex
Aryex force-pushed the alexl/agent/python-mget-zero-copy-buffers branch from e60a6fe to d38be75 Compare July 27, 2026 14:47
@Aryex
Aryex marked this pull request as ready for review July 27, 2026 14:47
@xShinnRyuu
xShinnRyuu force-pushed the alexl/agent/python-mget-zero-copy-buffers branch 2 times, most recently from 9f0a15b to d38be75 Compare July 29, 2026 18:27
Add a Zero-Copy Buffers section to the Synchronous Client how-to page covering the buffers parameter on mget() and the sibling buffer parameter on get(). Documents both patterns with complete examples, describes the byte-count return semantics, lists buffer requirements (writable memoryview, C-contiguous, correct length), and covers the error cases (RequestError for oversized values, ValueError for length mismatch, TypeError for invalid buffers). Includes a complete mset/mget workflow example and a retry-on-overflow error handling snippet.

Signed-off-by: Thomas Zhou <thomaszhou64@gmail.com>
@xShinnRyuu
xShinnRyuu force-pushed the alexl/agent/python-mget-zero-copy-buffers branch from ddbf2bb to 70c5a04 Compare July 29, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants