Repository navigation
perf(managed): restore lifecycle performance after Node cutover - #83
Merged
Merged
Conversation
Reuse invocation-scoped environment evidence and bounded immutable metadata interpretations while retaining fresh authority, ownership, generation, payload, and publication checks. Preserve exact canonical comparison evidence and eliminate duplicate JSON traversal and unnecessary installed-file probes. Add work-count and failure-boundary coverage plus a repeatable fresh-cache benchmark. Controlled runs improve 4.7x and 6.1x over the regressed implementation; the user's notebook falls from 130.671s to 87.383s total. Verification: 702 affected-subsystem tests passed; good-enough passed 4,447 with 29 skipped in 23m47s; changed Python F/E9 lint and diff checks passed. Exhaustive, installed-package, and real Ray/GPU suites were not run.
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.
Summary
Cached-dataset computation had become substantially slower after the Node lifecycle refactor, even when caching a single item. This restores most of that lost performance while preserving the current lifecycle and persistence guarantees. The user's actual notebook now takes 87.383s instead of 130.671s, approximately 33% less total time.
Performance evidence
Controlled fresh-Store benchmarks, medians of three runs per implementation in the same
big_env:f996ea43)11354d8a)The controlled cases improve 4.7× / 6.1× over the regression. The simple case is about 23% faster than the old implementation; the deeper recipe returns to wall-time parity, not a demonstrated further speedup. All samples restore and verify their saved result. Host load affects absolute times; the benchmark notes include CPU time and reproduction commands.
The separate user-reported notebook comparison is a single real-workload observation:
compute()fell from 124.857s to 83.695s, with Dispatch/preparation bringing the total to the figures above. It is not a controlled benchmark median.Correctness decisions
Related: #78, #82
Validation
./tests.sh good-enough --ignore tests/old --ignore tests/dev -x tests: 4,447 passed, 29 skipped, 23m47s complete local wall time on the loaded host. Test selection was unchanged.