Search spaces are currently not deepcopied for speed reasons (see #104). However, since there's nothing in the search space API that says spaces must be immutable this can result in bugs. It's also not clear how significant the speed saving is (saving state is not usually a bottleneck).
Fully backwards compatible: yes
PR checklist
[ ] The quality checks are all passing
[ ] The bug case / new feature is covered by tests
[ ] Any new features are well-documented (in docstrings or notebooks)
Related issue(s)/PRs: #104
Summary
Search spaces are currently not deepcopied for speed reasons (see #104). However, since there's nothing in the search space API that says spaces must be immutable this can result in bugs. It's also not clear how significant the speed saving is (saving state is not usually a bottleneck).
Fully backwards compatible: yes
PR checklist