Skip to content

[Auto-Recovery] Refactor search algorithms for checkpointable state#1946

Open
yf225 wants to merge 1 commit intomainfrom
yf225/stack/95
Open

[Auto-Recovery] Refactor search algorithms for checkpointable state#1946
yf225 wants to merge 1 commit intomainfrom
yf225/stack/95

Conversation

@yf225
Copy link
Copy Markdown
Contributor

@yf225 yf225 commented Apr 4, 2026

Stacked PRs:


[Auto-Recovery] Refactor search algorithms for checkpointable state

Replace generator-based pattern search with a PatternSearchCopy dataclass
(generators can't be pickled). Extract _init_search() from _autotune() in
all search algorithms so checkpoint resume can skip initialization and jump
directly into the search loop. Add _current_generation tracking to
BaseSearch.

Pure refactoring, no behavioral change.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 4, 2026
yf225 added a commit that referenced this pull request Apr 4, 2026
Replace generator-based pattern search with a PatternSearchCopy dataclass
(generators can't be pickled). Extract _init_search() from _autotune() in
all search algorithms so checkpoint resume can skip initialization and jump
directly into the search loop. Add _current_generation tracking to
BaseSearch.

Pure refactoring, no behavioral change.

stack-info: PR: #1946, branch: yf225/stack/95
yf225 added a commit that referenced this pull request Apr 4, 2026
Replace generator-based pattern search with a PatternSearchCopy dataclass
(generators can't be pickled). Extract _init_search() from _autotune() in
all search algorithms so checkpoint resume can skip initialization and jump
directly into the search loop. Add _current_generation tracking to
BaseSearch.

Pure refactoring, no behavioral change.

stack-info: PR: #1946, branch: yf225/stack/95
Replace generator-based pattern search with a PatternSearchCopy dataclass
(generators can't be pickled). Extract _init_search() from _autotune() in
all search algorithms so checkpoint resume can skip initialization and jump
directly into the search loop. Add _current_generation tracking to
BaseSearch.

Pure refactoring, no behavioral change.

stack-info: PR: #1946, branch: yf225/stack/95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant