Repository navigation
perf(array): drop redundant mirror clone on element read path - #923
Merged
Merged
Conversation
caomengxuan666
added a commit
that referenced
this pull request
Nov 6, 2026
…> 0 (Refs #863) (#2858) [B5-11] Ledger: raise has_compspec_at 0 -> 1, retire has_compspec 1 -> 0 (Refs #863) Follow-up bookkeeping for the merged B5-11 host migration (niu #926, merge `d4879b4b`): the host's completer routing gate now reads `Session::has_compspec_at` (one production call, completer.rs:637), and the name-form `Session::has_compspec` has zero production callers left (the two shell.rs reads are test-module only, noted in-row, not counted). Ledger only; no Rust touched. Checker: presence 279/279 + self-test green. Canary's ledger leg will read red until the niu mirror copies this ledger (expected lockstep debt, same as #2852 -> #923). Refs unixwin/niubash#863, #2856. 本 PR 删除了什么:两行账本记录的 staged-0 状态(`has_compspec_at` 的 "Recorded staged ahead of the host adoption" 与 `has_compspec` 行的旧门描述);无产品代码增删。
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.
Array-tail audit: array_element_parameter_value_uncached cloned the whole mirror twice per element read (parameter_array_storage clone + storage_opt.clone()) before the typed-cell fast path. Drop the second clone (storage_opt consumed by value, is_none captured upfront). Zero semantic change; halves the per-read O(n) memcpy. Full hoist of typed check before storage fetch is follow-up. Tests: lib 639 + cli 467 green.