Skip to content

Commit

Permalink
chore(middleware-flexible-checksums): re-order checksum implementatio…
Browse files Browse the repository at this point in the history
…ns based on performance (#6500)
  • Loading branch information
trivikr committed Sep 20, 2024
1 parent 6a1aa14 commit 70db983
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/middleware-flexible-checksums/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ export const CLIENT_SUPPORTED_ALGORITHMS = [

/**
* Priority order for validating checksum algorithm. A faster algorithm has higher priority.
* ToDo: update the priority order based on profiling of JavaScript implementations.
*/
export const PRIORITY_ORDER_ALGORITHMS = [
ChecksumAlgorithm.SHA256,
ChecksumAlgorithm.SHA1,
ChecksumAlgorithm.CRC32,
ChecksumAlgorithm.CRC32C,
ChecksumAlgorithm.SHA1,
ChecksumAlgorithm.SHA256,
];

0 comments on commit 70db983

Please sign in to comment.