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

STAC search use assets directly #16

Merged
merged 1 commit into from
Jun 5, 2024
Merged

STAC search use assets directly #16

merged 1 commit into from
Jun 5, 2024

Conversation

ptomasula
Copy link
Collaborator

Relate issue(s)

#15

Background

After running performance profiling, I found that a large amount of time was spent in the python's deepcopy. The get_assets call returns a copy of the asset list, which we are iterating over. By using the assets directly we can avoid the copy step and save a bunch of overhead.

Relate issue #15
After running profiling, I found that a large amount of time was spent in the python's deepcopy. The get_assets call returns a copy which we are iterating over. By using the assets directly we can avoid the copy step and save a bunch of overhead.
@ptomasula ptomasula requested a review from sjordan29 June 3, 2024 15:58
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.22%. Comparing base (6dfeec3) to head (f68df03).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #16   +/-   ##
=======================================
  Coverage   86.22%   86.22%           
=======================================
  Files          18       18           
  Lines         646      646           
=======================================
  Hits          557      557           
  Misses         89       89           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I can't think of any unintended consequences with this. It looks like this is used elsewhere in the Catalog-To-Xpublish code-base (e.g., in the _get_asset method).

@sjordan29 sjordan29 merged commit 206673a into main Jun 5, 2024
2 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.

2 participants