This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-22
Channels
- # ai (1)
- # announcements (1)
- # babashka (9)
- # beginners (18)
- # calva (19)
- # clerk (136)
- # clj-http (3)
- # clj-kondo (13)
- # cljs-dev (166)
- # clojure (39)
- # clojure-europe (133)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (12)
- # clr (1)
- # community-development (6)
- # conjure (8)
- # cursive (13)
- # data-science (1)
- # datomic (26)
- # events (5)
- # fulcro (12)
- # gratitude (3)
- # honeysql (9)
- # hyperfiddle (33)
- # introduce-yourself (6)
- # kaocha (1)
- # lambdaisland (5)
- # malli (4)
- # off-topic (3)
- # rdf (4)
- # re-frame (3)
- # releases (3)
- # scittle (11)
- # specter (2)
- # sql (4)
- # tools-deps (4)
- # vim (10)
Hey, not sure if this is the right channel. But I had to execute this script recently https://download.clojure.org/install/win-install-1.11.1.1165.ps1 and noticed it was dog slow because it had a progress bar (https://github.com/PowerShell/PowerShell/issues/2138).
If the script can be amended to set $ProgressPreference = "SilentlyContinue"
it reduces the time taken to download the ZIP from 30 seconds to 270ms on my machine.
Measure-Command {Invoke-WebRequest -Uri "" -OutFile a.zip}
TotalSeconds : 30.1399345
Measure-Command {$ProgressPreference = "SilentlyContinue"; Invoke-WebRequest -Uri "" -OutFile b.zip}
TotalSeconds : 0.2708882
Cheers 👍Sorry, forgot to say I got the script from https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows which itself is linked from https://clojure.org/guides/install_clojure#_windows_instructions
In https://github.com/clojure/brew-install/blob/1.11.1/src/main/resources/clojure/install/win-install.ps1 where would this need to go? just before the Invoke-WebRequest line?
@U064X3EF3 typically with PowerShell scripts we would put the actions preferences at the top so they are all together. This setting would also improve Expand-Archive so I as long as the preference is set before any calls to either Invoke-WebRequest or Expand-Archive it will do the desirable thing. I didn't realise the script lived on GH otherwise I would have sent in a PR. Cheers 👍
Contrib projects don't accept PRs (but we can't turn that GH feature off). See https://clojure.org/dev/dev for the contribution process on core & contrib libraries. Suggestions can always be posted at https://ask.clojure.org/