bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EXTERNAL] Re: Performance issues using GAWK 3.1.6 ->from Win 2008


From: Eli Zaretskii
Subject: Re: [EXTERNAL] Re: Performance issues using GAWK 3.1.6 ->from Win 2008 to Win 2016
Date: Mon, 14 Jun 2021 21:27:22 +0300

> Date: Mon, 14 Jun 2021 14:11:42 -0400
> From: "Andrew J. Schorr" <aschorr@telemetry-investments.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,
>       "Pereira, Ricardo" <Ricardo_D.Pereira@pseg.com>,
>       "bug-gawk@gnu.org" <bug-gawk@gnu.org>,
>       "Pirane, Marco" <Marco.Pirane@pseg.com>,
>       "Paludetto, Flavio" <Flavio.Paludetto@pseg.com>
> 
> Here's a totally random idea. Sometimes mysterious performance problems may be
> caused by the locale configuration, or at least I have found that to be the
> case on Linux. For some of my Linux scripts, it helps the speed to set the
> LC_ALL and LANG environment variables to "C". Perhaps this may also be 
> relevant
> on Windows.

It could indeed be the locale issue, but to test this hypothesis on
Windows, you need to invoke Gawk with the -b command-line switch,
because AFAIU just setting LC_ALL=C in the environment won't help:
Gawk doesn't call

   setlocale (LC_ALL, "");

and without that environment variables won't help because setlocale
from the MS-Windows runtime doesn't heed LC_* environment variables
(the Gawk replacement does heed them, but it needs to be called to do
that).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]