perf
patch
task/mpack-phase3-synchronous-push
#1 / 1
perf: make push fully synchronous — remove background job and size threshold (Phase 3 issue #69)
wire_push_unpack_mpack now processes ALL mpacks inline regardless of size. The mpack_content_cache_max_bytes threshold is removed as a gate. No mpack.index background job is enqueued — push is fully synchronous.
storage_uri is set to mpack://{mpack_key} immediately on the push path. read_object_bytes now handles mpack:// URIs by extracting from the covering mpack on demand.
Deletes test_mpack_fetch_readiness.py and test_unpack_mpack_skips_msgpack.py which encoded the old background-job / content_cache / threshold architecture. Replaces them with P3-1, P3-2, P3-3 in test_mpack_phase3.py.
sha256:ce4a0610eda998f083cff4ba6d056353ca1d03f73ceb120e48420d1d1e847d76
sha
+34
~2
−79
symbols
sha256:c8db1e4804c8467043f2799df136ebba8af2bb0103795c613d62c184cf346cd7
snapshot
+34
symbols added
~2
symbols modified
−79
symbols removed
0
dead code introduced
Semantic Changes
115 symbols
+
AsyncSession
import
import AsyncSession L28–28 ← moved from tests/test_unpack_mpack_skips_msgpack.py
+
MusehubBackgroundJob
import
import MusehubBackgroundJob L33–33 ← moved from tests/test_mpack_fetch_readiness.py
+
annotations
import
import annotations L19–19 ← moved from tests/test_unpack_mpack_skips_msgpack.py
+
test_p3_1_no_mpack_index_job_enqueued
function
async_function test_p3_1_no_mpack_index_job_enqueued L105–140
+
test_p3_2_storage_uri_is_mpack_uri_after_push
function
async_function test_p3_2_storage_uri_is_mpack_uri_after_push L146–181
+
test_p3_3_immediate_fetch_after_push
function
async_function test_p3_3_immediate_fetch_after_push L187–276
−
MusehubBackgroundJob
import
import MusehubBackgroundJob L29–29 → moved to tests/test_mpack_phase3.py
−
test_content_cache_cleared_after_job
function
async_function test_content_cache_cleared_after_job L249–307
−
test_fetch_object_before_worker_returns_bytes
function
async_function test_fetch_object_before_worker_returns_bytes L208–245
−
test_large_mpack_skips_content_cache
function
async_function test_large_mpack_skips_content_cache L311–348
−
test_unpack_mpack_does_not_call_msgpack_unpackb
function
async_function test_unpack_mpack_does_not_call_msgpack_unpackb L156–229
← Older
Oldest on task/mpack-phase3-synchronous-push
All commits
Newer →
Latest on task/mpack-phase3-synchronous-push
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:ce4a0610eda998f083cff4ba6d056353ca1d03f73ceb120e48420d1d1e847d76 --body "your comment"
No comments yet. Be the first to start the discussion.