Repository navigation
PERF: maintain root when signing ItemCollections - #30
Tom Augspurger (TomAugspurger) merged 1 commit into
Conversation
Losing the root collection was causing `to_dict()` on signed `ItemCollections` to be extremely slow, like stac-utils/pystac#546. By preserving the root catalog stac-utils/pystac-client#72, it's much faster.
|
Thanks. Agreed that signing the ItemCollection should keep the root link. Just to confirm the changes to the test files: the need to call |
|
Yeah, I should document that. It's just to simulate the result of a search, basically, and make it so the input already has a resolved root link (otherwise there's nothing to test). If you want we could parametrize on resolved/not resolved. Or just remove the link from one of the JSON files. |
|
I think we're good with the tests as is. Thanks! I'll make a release with this. |
Losing the root collection was causing
to_dict()on signedItemCollectionsto be extremely slow, like stac-utils/pystac#546. By preserving the root catalog stac-utils/pystac-client#72, it's much faster.Before this PR: