notation-go icon indicating copy to clipboard operation
notation-go copied to clipboard

Checking the media type after fetching the blob is slow

Open patrickzheng200 opened this issue 2 years ago • 1 comments

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

patrickzheng200 avatar Nov 23 '22 07:11 patrickzheng200

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.

patrickzheng200 avatar Nov 25 '22 00:11 patrickzheng200