Skip to content

Commit 70db983

Browse files
authored
chore(middleware-flexible-checksums): re-order checksum implementations based on performance (#6500)
1 parent 6a1aa14 commit 70db983

File tree

1 file changed

+2
-3
lines changed
  • packages/middleware-flexible-checksums/src

1 file changed

+2
-3
lines changed

packages/middleware-flexible-checksums/src/types.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ export const CLIENT_SUPPORTED_ALGORITHMS = [
1212

1313
/**
1414
* Priority order for validating checksum algorithm. A faster algorithm has higher priority.
15-
* ToDo: update the priority order based on profiling of JavaScript implementations.
1615
*/
1716
export const PRIORITY_ORDER_ALGORITHMS = [
17+
ChecksumAlgorithm.SHA256,
18+
ChecksumAlgorithm.SHA1,
1819
ChecksumAlgorithm.CRC32,
1920
ChecksumAlgorithm.CRC32C,
20-
ChecksumAlgorithm.SHA1,
21-
ChecksumAlgorithm.SHA256,
2221
];

0 commit comments

Comments
 (0)