Skip to content

Reuse completed TPE observations across trials - #274

Merged
y0z merged 3 commits into
mainfrom
perf/issue-266-observation-cache
Oct 14, 2026
Merged

y0z merged 3 commits into
mainfrom
perf/issue-266-observation-cache

Conversation

@y0z

@y0z y0z commented Oct 13, 2026

Copy link
Copy Markdown
Member

Reuse completed TPE observations across trials instead of rebuilding parameter columns for each trial. Retain per-study histories and immutable per-trial snapshots, updating columns as trials finish or are discarded.

Drop a study's cached history when an update fails so malformed observations cannot bypass the cache limit; add a regression test for this failure path.

Closes #266.

Original implementation by @tkng, cherry-picked from e8ba3ae with the original commit author preserved. The error-path fix is a separate follow-up commit.

tkng and others added 2 commits October 13, 2026 18:36
- Reuse completed observations in bounded, storage-owned study histories.
- Keep active trial snapshots immutable through copy-on-write.
- Handle out-of-order completion, omitted trials, and conditional parameters.
- Isolate caches for storages with identical study and trial IDs.
- Keep upstream tests in place and add observation cache regression cases.
@y0z
y0z marked this pull request as ready for review October 14, 2026 05:15
@y0z
y0z merged commit 1f71c87 into main Oct 14, 2026
7 checks passed
@y0z
y0z deleted the perf/issue-266-observation-cache branch October 14, 2026 05:17
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.

Multivariate TPE rebuilds observation columns for every trial

2 participants