Skip to content

Reduce the copy of study attributes - #8

Merged
c-bata merged 1 commit into
mainfrom
c-bata/reduce-attr-clone
Dec 10, 2025
Merged

c-bata merged 1 commit into
mainfrom
c-bata/reduce-attr-clone

Conversation

@c-bata

@c-bata c-bata commented Dec 10, 2025 •

Copy link
Copy Markdown
Member

Currently, study.system_attrs are cloned n_trials times, increasing the memory usage. This PR wraps study.attrs with Arc, so that .clone() only increases the reference count.

@c-bata c-bata changed the title Reduce the copy of trial attributes Reduce the copy of study attributes Dec 10, 2025
@c-bata
c-bata marked this pull request as ready for review December 10, 2025 03:49
@c-bata
c-bata merged commit ea4df89 into main Dec 10, 2025
8 checks passed
@c-bata
c-bata deleted the c-bata/reduce-attr-clone branch December 10, 2025 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant