notation-go
notation-go copied to clipboard
Checking the media type after fetching the blob is slow
The performance of this check is slow since it checks the media type after fetching the blob.
if len(remoteOpts.SignatureMediaTypes) != 0 && !slices.Contains(remoteOpts.SignatureMediaTypes, sigDesc.MediaType)
Originally posted by @shizhMSFT in https://github.com/notaryproject/notation-go/pull/208#discussion_r1030094971
Closing this issue since we decided to remove this logic from RC-1. If we decide to bring it back in RC-2 we should re-open this issue.