Skip to content

Avoid copy() calls in adjust() - #229

Merged
psss merged 1 commit into
mainfrom
adjust-skip-copy
Jun 4, 2024
Merged

psss merged 1 commit into
mainfrom
adjust-skip-copy

Conversation

@lukaszachy

Copy link
Copy Markdown
Contributor

Replace .pop() calls with skipping "control" keys (when,because..) during the merge.

@psss psss 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.

Thanks for the improvement. The simplification looks good. But there is a regression. We should probably apply the ADJUST_CONTROL_KEYS condition only for selected _merge_special() calls. What about adding a new parameter which would turn the condition on and off?

Comment thread fmf/base.py Resolved
@lukaszachy
lukaszachy requested a review from psss May 15, 2024 06:57

@martinhoyer martinhoyer left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@lukaszachy Could you please provide a usage example, to help me understand the context? 🙏

EDIT: Wait, wrong PR. I meant for #230

@martinhoyer martinhoyer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice.

Comment thread fmf/base.py Resolved
@psss psss changed the title Avoid copy() calls in adjust() Avoid copy() calls in adjust() Jun 4, 2024
Replace `.pop()` calls with skipping "control" keys (when,
because...) during the merge.
@psss
psss force-pushed the adjust-skip-copy branch from 9cef668 to 33c920d Compare June 4, 2024 07:33
@psss psss self-assigned this Jun 4, 2024
@psss
psss merged commit 33c920d into main Jun 4, 2024
@psss
psss deleted the adjust-skip-copy branch June 4, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants