gabriel / musehub public
perf BREAKING dev
AI Agent gabriel · 130 days ago · May 11, 2026 · Diff

perf: remove msgpack.unpackb from wire_push_unpack_bundle sync path

sha256(wire_bytes) == bundle_key already proves every byte in the bundle. Parsing to count objects is checking the work of the hash.

- Add commits_count/objects_count params to wire_push_unpack_bundle - Remove local msgpack.unpackb call; use client-supplied counts for logging - Add module-level import msgpack as _mp for spy-patch testability - TDD: test_unpack_bundle_does_not_call_msgpack_unpackb green

sha256:8a7f1c45aaf698ac58dd9f0de7772bbeb02c0a539d180d9de31952dd20e35e48 sha
+37 ~2 symbols
sha256:2d171fbad56eef89cc12ce7858af3390096a969b391f5968faafdb686137ba9c snapshot
+37
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes 39 symbols
+ _AUTH_CTX variable variable _AUTH_CTX L50–55
+ _BLOB_SIZE variable variable _BLOB_SIZE L61–61
+ _FILES_CHANGED variable variable _FILES_CHANGED L60–60
+ _N_COMMITS variable variable _N_COMMITS L59–59
+ _N_FILES variable variable _N_FILES L58–58
+ _make_repo function function _make_repo L94–150
+ client function async_function client L65–79
+ ASGITransport import import ASGITransport L29–29
+ AsyncClient import import AsyncClient L29–29
+ AsyncSession import import AsyncSession L30–30
+ CommitRecord import import CommitRecord L40–40
+ MSignContext import import MSignContext L32–32
+ SnapshotRecord import import SnapshotRecord L40–40
+ annotations import import annotations L19–19
+ app import import app L34–34
+ blob_id import import blob_id L47–47
+ build_mpack import import build_mpack L37–37
+ compute_commit_id import import compute_commit_id L39–39
+ compute_snapshot_id import import compute_snapshot_id L39–39
+ datetime import import datetime L21–21
+ get_db import import get_db L33–33
+ hashlib import import hashlib L22–22
+ msgpack import import msgpack L26–26
+ muse_dir import import muse_dir L38–38
+ optional_signed_request import import optional_signed_request L32–32
+ patch import import patch L24–24
+ pathlib import import pathlib L23–23
+ pytest import import pytest L27–27
+ pytest_asyncio import import pytest_asyncio L28–28
+ require_signed_request import import require_signed_request L32–32
+ write_branch_ref import import write_branch_ref L40–40
+ write_commit import import write_commit L40–40
+ write_object import import write_object L36–36
+ write_snapshot import import write_snapshot L40–40
+ repo function async_function repo L83–91
+ test_unpack_bundle_does_not_call_msgpack_unpackb function async_function test_unpack_bundle_does_not_call_msgpack_unpackb L154–221
~ musehub/services/musehub_wire.py .py 1 symbol added, 1 symbol modified
+ _mp import import _mp L1030–1030
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8a7f1c45aaf698ac58dd9f0de7772bbeb02c0a539d180d9de31952dd20e35e48 --body "your comment"