Skip to content

Update joint search spaces in place - #283

Merged
y0z merged 1 commit into
mainfrom
perf/issue-272-study-cache-retain
Oct 15, 2026
Merged

y0z merged 1 commit into
mainfrom
perf/issue-272-study-cache-retain

Conversation

@y0z

@y0z y0z commented Oct 15, 2026

Copy link
Copy Markdown
Member

Update the joint search space in place with HashMap::retain, removing repeated map allocations and clones of retained parameter names and distributions. Keep distribution matching, trial filtering, and cursor behavior unchanged.

Closes #272.

Original implementation by @tkng, cherry-picked from 66a6a9c without code changes, preserving the original commit author.

- Compute completed-trial intersections with HashMap::retain.
- Remove repeated map allocation and parameter-name/distribution clones.
- Preserve distribution matching and unfinished-trial cursor behavior.
@y0z
y0z marked this pull request as ready for review October 15, 2026 08:05
@y0z
y0z merged commit 1105a71 into main Oct 15, 2026
8 checks passed
@y0z
y0z deleted the perf/issue-272-study-cache-retain branch October 15, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary map allocations and cloning in joint search-space updates

2 participants