Skip to content

Fix memory issue (asan)#3

Merged
tupek2 merged 12 commits into
mainfrom
fix_memory
Feb 10, 2026
Merged

Fix memory issue (asan)#3
tupek2 merged 12 commits into
mainfrom
fix_memory

Conversation

@tupek2

@tupek2 tupek2 commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator

Also, optimize performance in some cases by using move constructors.

@tupek2 tupek2 requested a review from btalamini February 9, 2026 21:00

@btalamini btalamini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, get it merged!

Comment thread src/gretl/state.hpp
Comment on lines +56 to +57
/// Allocates default-constructed primal storage; finalize() will overwrite it
/// via evaluate_forward(), so copying the source primal is unnecessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me like these comments are someone thinking out loud about WHY they are using clone().

@tupek2 tupek2 merged commit 6e40c75 into main Feb 10, 2026
11 checks passed
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.

3 participants