Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine containsPath to reduce memory allocation #3730

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

yoav-orca
Copy link
Contributor

Description

PR to fix this issue #3729

Type of change

  • Performance (make Syft run faster or use less memory, without changing visible behavior much)

Checklist:

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Sorry, something went wrong.

Signed-off-by: Yoav Alon <yoav@orca.security>
@yoav-orca yoav-orca force-pushed the peak-memory-in-contains-path branch from 0d87a02 to 6121105 Compare March 13, 2025 15:58
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

Thanks, @yoav-orca! I think the existing tests are covering this sufficiently 👍

@kzantow kzantow merged commit 6f70927 into anchore:main Mar 13, 2025
12 checks passed
@wagoodman wagoodman linked an issue Mar 13, 2025 that may be closed by this pull request
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.

Syft fileresolver.containsPath allocates unnecessarily
2 participants