Repository navigation
Merged
Conversation
…ist benchmarks (#2304) - Sweep ceremonial .clone() calls on values across src/compiler/, lib/std/collections.w, lib/std/compiler.w, tools/pub_lint.w, and tools/migrate_diff.w while keeping src/ compatible with the pinned pre-D120 seed. - Add the three D120 microbenchmarks (field-push, param-element-write, share-then-mutate) in test/benchmark/cow_value_lists.w. - Mark D120 and docs/proposals/d120-implementation-plan.md compliant.
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.
Completes Stage 6 of D120 (
docs/proposals/d120-implementation-plan.md, #2304):.clone()calls acrosssrc/compiler/,lib/std/collections.w,lib/std/compiler.w, andtools/(clone-callinlib4 -> 2,src34 -> 17,tools11 -> 5;move-argintools5 -> 3).LIST_MAKE_UNIQUE,MAP_MAKE_UNIQUE, andList/HashMapstruct-field drops into per-type helpers (ensure_list_make_unique_fn,ensure_map_make_unique_fn,ensure_structural_drop_fn) insrc/CodegenDispatch.wand skips non-drop fields beforewl_build_struct_gep(:stage2peak RSS 1,971 MB).materialize_tail_view_for_owned_demandinsrc/MirLower.wso contextual-copy view tails of non-dropCopytypes (xs[n - 1]) materialize before block scope-exit drops, and extendsvalidate_read_after_dropinsrc/MirCore.wto track single-assignmentRK_REF/RK_USEreference temporaries.test/benchmark/cow_value_lists.wmicrobenchmarks:field-push: 3 ns/op (200,000 ops)param-element-write: <1 ns/op (400,000 ops)share-then-mutate (256): 452 ns/op (10,000 ops)