- Jul
- 532
- 10
This is driving me crazy.
BACKSTORY: Had 2 power failures, end-result was SSD drive corruption despite having a UPS, $32 in cable loss, and restoring a 3-day old Windows Backup.
Everything was fine... Except perl.
Installed Strawberry Perl's latest 2024 version rather than the 2009 version I'd been using.
Ugh. Instant scripts are reallly slow. Turns out there's a 3.2 second startup on a "hello world!".
Revert. Problem gone.
Try 12/2023 version. Problem back.
At this point, I'm well over an hour into this. But I find out more!
This odd 3.25-second slowdown (which compounds with multiple script piping) ONLY happens in TCC. And ONLY for Strawberry perl version possibly greater than "2009" or definitely the "2023/13" and "2024 latest" versions. (Sorry, I think in dates rather than version numbers.)
So out of all 6 of the combinations of [TCC, CMD, PowerShell] * [Strawberry perl 2009, Strawberry perl >=2023], it's only TCC + Perl >=2023 that creates this excessive startup delay.
One of the reasons I still use perl for some stuff is that Python's startup time is quite poor in comparison, so I try not to use it for commands that use piping.
Went back to 2009. Then remembered why I want to upgrade. 2009-Perl can intput and output emoji just fine, but it just cannot take emoji as an $ARGV. It's nuts. But also, 2009-Perl is pretty antiquated. I'd like to upgrade it, but every time I do, I get this delay problem.
And I just can't figure out how to fix it.
p.s. No PERLIO environment variable set. Have also tried all permutations of chcp 437|65001 and option //utf8|unicodeoutput=Yes|no
BACKSTORY: Had 2 power failures, end-result was SSD drive corruption despite having a UPS, $32 in cable loss, and restoring a 3-day old Windows Backup.
Everything was fine... Except perl.
Installed Strawberry Perl's latest 2024 version rather than the 2009 version I'd been using.
Ugh. Instant scripts are reallly slow. Turns out there's a 3.2 second startup on a "hello world!".
Revert. Problem gone.
Try 12/2023 version. Problem back.
At this point, I'm well over an hour into this. But I find out more!
This odd 3.25-second slowdown (which compounds with multiple script piping) ONLY happens in TCC. And ONLY for Strawberry perl version possibly greater than "2009" or definitely the "2023/13" and "2024 latest" versions. (Sorry, I think in dates rather than version numbers.)
So out of all 6 of the combinations of [TCC, CMD, PowerShell] * [Strawberry perl 2009, Strawberry perl >=2023], it's only TCC + Perl >=2023 that creates this excessive startup delay.
One of the reasons I still use perl for some stuff is that Python's startup time is quite poor in comparison, so I try not to use it for commands that use piping.
Went back to 2009. Then remembered why I want to upgrade. 2009-Perl can intput and output emoji just fine, but it just cannot take emoji as an $ARGV. It's nuts. But also, 2009-Perl is pretty antiquated. I'd like to upgrade it, but every time I do, I get this delay problem.
And I just can't figure out how to fix it.
p.s. No PERLIO environment variable set. Have also tried all permutations of chcp 437|65001 and option //utf8|unicodeoutput=Yes|no