From cfe6bde53ba0ed45d23085c695b473bd4b25e683 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 22 May 2024 10:57:51 -0400 Subject: [PATCH] (chocolatey-community#58) Speed up Get-RemoteChecksum The current Get_RemoteChecksum implementation uses Invoke-WebRequest which can be slow on larger files. This results in a long checksumming process during automated packaging. By switching to the .NET webclient, while losing the "interactive" download update, we significantly increase the speed of the download. For example, on a 150 mb file, it went from minutes to download to seconds. Added modified date in this commit --- src/Public/Get-RemoteChecksum.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Public/Get-RemoteChecksum.ps1 b/src/Public/Get-RemoteChecksum.ps1 index bebd0fe..f1fbde1 100644 --- a/src/Public/Get-RemoteChecksum.ps1 +++ b/src/Public/Get-RemoteChecksum.ps1 @@ -1,5 +1,5 @@ # Author: Miodrag Milic -# Last Change: 26-Nov-2016. +# Last Change: 22-May-2024. <# .SYNOPSIS