Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Open the pod bay doors, HAL." -- Dave Bowman, 2001


devel / comp.lang.tcl / tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

SubjectAuthor
* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowshenye...@gmail.com
+* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowFrancois Vogel
|+* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowS-Y. Chen
||`* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowFrancois Vogel
|| `* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowS-Y. Chen
||  `* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowFrancois Vogel
||   `- tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowS-Y. Chen
|`* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowChristian Werner
| `* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowFrancois Vogel
|  +* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowFrancois Vogel
|  |`- tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowChristian Werner
|  `- tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowChristian Werner
+* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowRalf Fassel
|`- tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowChristian Gollwitzer
`* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowRalf Fassel
 `* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowS-Y. Chen
  +- tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowet99
  `* tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowRalf Fassel
   `- tcl/tk 8.6.12 (built by VS 2022) exec command extremely slowS-Y. Chen

1
tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12386&group=comp.lang.tcl#12386

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:1a:b0:74d:f7af:b238 with SMTP id j26-20020a05620a001a00b0074df7afb238mr2318732qki.14.1682931619929;
Mon, 01 May 2023 02:00:19 -0700 (PDT)
X-Received: by 2002:a05:620a:301:b0:74e:2fe0:84ef with SMTP id
s1-20020a05620a030100b0074e2fe084efmr2221756qkm.15.1682931619677; Mon, 01 May
2023 02:00:19 -0700 (PDT)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 1 May 2023 02:00:19 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=122.118.213.239; posting-account=qZRjCAoAAAAR5kQR8hPcT7i0-dAMjKzW
NNTP-Posting-Host: 122.118.213.239
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
Subject: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: shenyeh.chen@gmail.com (shenye...@gmail.com)
Injection-Date: Mon, 01 May 2023 09:00:19 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1824
 by: shenye...@gmail.com - Mon, 1 May 2023 09:00 UTC

I have this very strange problem, and is wondering if anyone has this experience.

I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized command bulit into tcl. But I have been doing this for quite a while without any problem.

For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to run an external programs will take more than 3 times of executipn time than using tcl 8.6.0 (from star to end of the external program).

Is there anything I should be aware of for the exec command in tcl 8.6.12 ?

Also I found there is an error during the bulding of 8.6.13, which is related to
"git rev-parse HEAD"
It doesn't seem to affect the final outcome of tcl and tk, so I just ignored it. What is this "git rev-parse HEAD" for anyway ? Should I be cautious about this ?

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<644fd85a$0$3187$426a74cc@news.free.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12388&group=comp.lang.tcl#12388

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Mon, 1 May 2023 17:18:49 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Newsgroups: comp.lang.tcl
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
Content-Language: en-US
From: francois.vogel.fv.NOSPAM@gmail.com (Francois Vogel)
In-Reply-To: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 230501-2, 1/5/2023), Outbound message
X-Antivirus-Status: Clean
Lines: 27
Message-ID: <644fd85a$0$3187$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 01 May 2023 17:18:50 CEST
NNTP-Posting-Host: 82.65.57.56
X-Trace: 1682954330 news-2.free.fr 3187 82.65.57.56:62916
X-Complaints-To: abuse@proxad.net
 by: Francois Vogel - Mon, 1 May 2023 15:18 UTC

Le 01/05/2023 à 11:00, shenye...@gmail.com a écrit :
> I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized command bulit into tcl. But I have been doing this for quite a while without any problem.
>
> For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to run an external programs will take more than 3 times of executipn time than using tcl 8.6.0 (from star to end of the external program).

Did you by any chance switch from Win10 to Win11? I have seen something
resembling your report when I did (there was no delay on Win10 Tcl/Tk
built with VS 2022). A 5 seconds (timeout?) delay got introduced in my
app. for no obvious reason (Tcl code unchanged). I didn't go to the
bottom of this problem though, I resolved it in quick and dirty mode by
a judiciously placed update in my script.

> Also I found there is an error during the bulding of 8.6.13, which is related to
> "git rev-parse HEAD"
> It doesn't seem to affect the final outcome of tcl and tk, so I just ignored it. What is this "git rev-parse HEAD" for anyway ? Should I be cautious about this ?

I'm building with VS2022 on Win11 and I'm not seeing an error. Could you
show how exactly you are building (show the commands you output), along
with the the exact error?
From a quick look, "git rev-parse HEAD" is used in makefile.vc to put
the commit hash of the bleeding edge (i.e. HEAD) of the current branch
in the manifest.uuid file. Sounds like we need git in the path for this
to work, perhaps that's the issue you are seeing.

Regards,
Francois

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12389&group=comp.lang.tcl#12389

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:13b4:b0:74e:362b:2f96 with SMTP id m20-20020a05620a13b400b0074e362b2f96mr2441125qki.2.1682957500895;
Mon, 01 May 2023 09:11:40 -0700 (PDT)
X-Received: by 2002:a05:622a:210:b0:3ef:3243:2853 with SMTP id
b16-20020a05622a021000b003ef32432853mr5135221qtx.12.1682957500550; Mon, 01
May 2023 09:11:40 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 1 May 2023 09:11:40 -0700 (PDT)
In-Reply-To: <644fd85a$0$3187$426a74cc@news.free.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=122.118.213.239; posting-account=qZRjCAoAAAAR5kQR8hPcT7i0-dAMjKzW
NNTP-Posting-Host: 122.118.213.239
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com> <644fd85a$0$3187$426a74cc@news.free.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: shenyeh.chen@gmail.com (S-Y. Chen)
Injection-Date: Mon, 01 May 2023 16:11:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 61
 by: S-Y. Chen - Mon, 1 May 2023 16:11 UTC

On Monday, May 1, 2023 at 11:18:54 PM UTC+8, Francois Vogel wrote:
> Le 01/05/2023 à 11:00, shenye...@gmail.com a écrit :
> > I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized command bulit into tcl. But I have been doing this for quite a while without any problem.
> >
> > For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to run an external programs will take more than 3 times of executipn time than using tcl 8.6.0 (from star to end of the external program).
> Did you by any chance switch from Win10 to Win11? I have seen something
> resembling your report when I did (there was no delay on Win10 Tcl/Tk
> built with VS 2022). A 5 seconds (timeout?) delay got introduced in my
> app. for no obvious reason (Tcl code unchanged). I didn't go to the
> bottom of this problem though, I resolved it in quick and dirty mode by
> a judiciously placed update in my script.
> > Also I found there is an error during the bulding of 8.6.13, which is related to
> > "git rev-parse HEAD"
> > It doesn't seem to affect the final outcome of tcl and tk, so I just ignored it. What is this "git rev-parse HEAD" for anyway ? Should I be cautious about this ?
> I'm building with VS2022 on Win11 and I'm not seeing an error. Could you
> show how exactly you are building (show the commands you output), along
> with the the exact error?
> From a quick look, "git rev-parse HEAD" is used in makefile.vc to put
> the commit hash of the bleeding edge (i.e. HEAD) of the current branch
> in the manifest.uuid file. Sounds like we need git in the path for this
> to work, perhaps that's the issue you are seeing.
>
> Regards,
> Francois

No not Win 11. I built and run it in Win 10. And it is not only a delay problrm. If the same external program run for 200 seconds in exec of 8.6.0, it will run about 700 seconds in 8.6.12/8.6.13. So I beleive there is something to do with how exec handle the external programs in the OS (or the opposite way).

I use the following building commands (I need multi-thread in tcl. I remembered I got it from some old version building instruction of tcl)

nmake -nologo -f makefile.vc OPTS=threads MSVCDIR=IDE MACHINE=AMD64 -a
nmake -nologo -f makefile.vc OPTS=dll MSVCDIR=IDE MACHINE=AMD64

The error message related to git is like
>>>>>>>>>>> (begin)
git rev-parse HEAD >>C:\...\Tcltk_8_6_13\tcl\win\..\manifest.uuid
'git' is not an internal or external command, excutable program or batch file
NMAKE : fatal error U1077: 'git rev-parse HEAD >>C:\...\Tcltk_8_6_13\tcl\win\..\manifest.uuid:
return code '0x1'
>>>>>>>>>>> (end)

Regards
Chen

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12390&group=comp.lang.tcl#12390

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:308:b0:3dc:3eac:eddb with SMTP id q8-20020a05622a030800b003dc3eaceddbmr4532566qtw.13.1682959130954;
Mon, 01 May 2023 09:38:50 -0700 (PDT)
X-Received: by 2002:a05:622a:1998:b0:3ed:54d:629e with SMTP id
u24-20020a05622a199800b003ed054d629emr5232958qtc.13.1682959130671; Mon, 01
May 2023 09:38:50 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 1 May 2023 09:38:50 -0700 (PDT)
In-Reply-To: <644fd85a$0$3187$426a74cc@news.free.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=217.232.213.163; posting-account=wi8XUAkAAADhgxlOTzYRDqsuN4By_ngW
NNTP-Posting-Host: 217.232.213.163
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com> <644fd85a$0$3187$426a74cc@news.free.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: undroidwish@gmail.com (Christian Werner)
Injection-Date: Mon, 01 May 2023 16:38:50 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Christian Werner - Mon, 1 May 2023 16:38 UTC

Francois Vogel schrieb am Montag, 1. Mai 2023 um 17:18:54 UTC+2:

> ... (there was no delay on Win10 Tcl/Tk
> built with VS 2022). A 5 seconds (timeout?) delay got introduced in my
> app. for no obvious reason (Tcl code unchanged) ...

Francois,

5 seconds rings an alarm bell in my head et voila I found this weird snippet

https://www.androwish.org/home/file?ci=tip&name=jni/tcl/win/tclWinPipe.c&ln=977-998

Laziness prevented me from writing a ticket in the Tcl core repo. So I believe
that those 5 seconds may be caused by some Win32 non-console process
without a GUI and thus without implicitly making a message queue which can
be waited on by the parent process. But that's only wild guesswork on an even
wilder process management design, to put it mildly.

BR,
Christian

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<644ff27f$0$3185$426a74cc@news.free.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12391&group=comp.lang.tcl#12391

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Mon, 1 May 2023 19:10:22 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr>
<ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>
From: francois.vogel.fv.NOSPAM@gmail.com (Francois Vogel)
In-Reply-To: <ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 230501-2, 1/5/2023), Outbound message
X-Antivirus-Status: Clean
Lines: 23
Message-ID: <644ff27f$0$3185$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 01 May 2023 19:10:23 CEST
NNTP-Posting-Host: 82.65.57.56
X-Trace: 1682961023 news-2.free.fr 3185 82.65.57.56:63708
X-Complaints-To: abuse@proxad.net
 by: Francois Vogel - Mon, 1 May 2023 17:10 UTC

Le 01/05/2023 à 18:11, S-Y. Chen a écrit :
> No not Win 11. I built and run it in Win 10. And it is not only a delay problrm. If the same external program run for 200 seconds in exec of 8.6.0, it will run about 700 seconds in 8.6.12/8.6.13. So I beleive there is something to do with how exec handle the external programs in the OS (or the opposite way).

OK, so it's not the same problem I have seen. Sorry.

> The error message related to git is like
>>>>>>>>>>>> (begin)
> git rev-parse HEAD >>C:\...\Tcltk_8_6_13\tcl\win\..\manifest.uuid
> 'git' is not an internal or external command, excutable program or batch file
> NMAKE : fatal error U1077: 'git rev-parse HEAD >>C:\...\Tcltk_8_6_13\tcl\win\..\manifest.uuid:
> return code '0x1'
>>>>>>>>>>>> (end)

Seems like you don't have git installed.
TIP #599 has introduced a dependency on fossil or git to get the commit
id of the thing being compiled. The error message you get should
indicate both fossil and git are missing from your environment. If it's
the case: how did you check out the source code? If it's not the case:
please file a bug report here: https://core.tcl-lang.org/tcl/tktnew

Regards,
Francois

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<644ff469$0$3183$426a74cc@news.free.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12392&group=comp.lang.tcl#12392

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Mon, 1 May 2023 19:18:32 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr>
<d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>
From: francois.vogel.fv.NOSPAM@gmail.com (Francois Vogel)
In-Reply-To: <d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 230501-2, 1/5/2023), Outbound message
X-Antivirus-Status: Clean
Lines: 27
Message-ID: <644ff469$0$3183$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 01 May 2023 19:18:33 CEST
NNTP-Posting-Host: 82.65.57.56
X-Trace: 1682961513 news-2.free.fr 3183 82.65.57.56:63796
X-Complaints-To: abuse@proxad.net
 by: Francois Vogel - Mon, 1 May 2023 17:18 UTC

Le 01/05/2023 à 18:38, Christian Werner a écrit :
> Francois Vogel schrieb am Montag, 1. Mai 2023 um 17:18:54 UTC+2:
>
>> ... (there was no delay on Win10 Tcl/Tk
>> built with VS 2022). A 5 seconds (timeout?) delay got introduced in my
>> app. for no obvious reason (Tcl code unchanged) ...
>
> Francois,
>
> 5 seconds rings an alarm bell in my head et voila I found this weird snippet
>
> https://www.androwish.org/home/file?ci=tip&name=jni/tcl/win/tclWinPipe.c&ln=977-998
>
> Laziness prevented me from writing a ticket in the Tcl core repo. So I believe
> that those 5 seconds may be caused by some Win32 non-console process
> without a GUI and thus without implicitly making a message queue which can
> be waited on by the parent process. But that's only wild guesswork on an even
> wilder process management design, to put it mildly.

Thanks for the pointer (any reason you point into Androwish instead of
Tcl?) and thanks for the idea. I'll have to figure out how this relates
to the 5 sec issue, and even more why there was a change of behavior
when switching from Win10 to Win11.

Regards,
Francois

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<644ff543$0$3183$426a74cc@news.free.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12393&group=comp.lang.tcl#12393

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Mon, 1 May 2023 19:22:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr>
<d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>
<644ff469$0$3183$426a74cc@news.free.fr>
From: francois.vogel.fv.NOSPAM@gmail.com (Francois Vogel)
In-Reply-To: <644ff469$0$3183$426a74cc@news.free.fr>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 230501-2, 1/5/2023), Outbound message
X-Antivirus-Status: Clean
Lines: 42
Message-ID: <644ff543$0$3183$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 01 May 2023 19:22:11 CEST
NNTP-Posting-Host: 82.65.57.56
X-Trace: 1682961731 news-2.free.fr 3183 82.65.57.56:63796
X-Complaints-To: abuse@proxad.net
 by: Francois Vogel - Mon, 1 May 2023 17:22 UTC

Le 01/05/2023 à 19:18, Francois Vogel a écrit :
> Le 01/05/2023 à 18:38, Christian Werner a écrit :
>> Francois Vogel schrieb am Montag, 1. Mai 2023 um 17:18:54 UTC+2:
>>
>>> ... (there was no delay on Win10 Tcl/Tk
>>> built with VS 2022). A 5 seconds (timeout?) delay got introduced in my
>>> app. for no obvious reason (Tcl code unchanged) ...
>>
>> Francois,
>>
>> 5 seconds rings an alarm bell in my head et voila I found this weird
>> snippet
>>
>>
>> https://www.androwish.org/home/file?ci=tip&name=jni/tcl/win/tclWinPipe.c&ln=977-998
>>
>> Laziness prevented me from writing a ticket in the Tcl core repo. So I
>> believe
>> that those 5 seconds may be caused by some Win32 non-console process
>> without a GUI and thus without implicitly making a message queue which
>> can
>> be waited on by the parent process. But that's only wild guesswork on
>> an even
>> wilder process management design, to put it mildly.
>
> Thanks for the pointer (any reason you point into Androwish instead of
> Tcl?) and thanks for the idea. I'll have to figure out how this relates
> to the 5 sec issue, and even more why there was a change of behavior
> when switching from Win10 to Win11.

Scrolling down a bit I now see what you meant, the link was slightly
off-position I think, it must rather be:

https://www.androwish.org/home/file?ci=tip&name=jni/tcl/win/tclWinPipe.c&ln=1066-1081

Correct?

Deserves a ticket in Tcl repo, isn't it?

Regards,
Francois

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<8571e0e8-a865-4cca-b8b7-1157b6ab6ecen@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12394&group=comp.lang.tcl#12394

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:14b0:b0:5ef:5f8d:c8b2 with SMTP id bo16-20020a05621414b000b005ef5f8dc8b2mr108051qvb.10.1682961971193;
Mon, 01 May 2023 10:26:11 -0700 (PDT)
X-Received: by 2002:a05:620a:152d:b0:74e:1090:8906 with SMTP id
n13-20020a05620a152d00b0074e10908906mr2538599qkk.0.1682961970965; Mon, 01 May
2023 10:26:10 -0700 (PDT)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 1 May 2023 10:26:10 -0700 (PDT)
In-Reply-To: <644ff469$0$3183$426a74cc@news.free.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=217.232.213.163; posting-account=wi8XUAkAAADhgxlOTzYRDqsuN4By_ngW
NNTP-Posting-Host: 217.232.213.163
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr> <d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>
<644ff469$0$3183$426a74cc@news.free.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8571e0e8-a865-4cca-b8b7-1157b6ab6ecen@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: undroidwish@gmail.com (Christian Werner)
Injection-Date: Mon, 01 May 2023 17:26:11 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1573
 by: Christian Werner - Mon, 1 May 2023 17:26 UTC

Francois Vogel schrieb am Montag, 1. Mai 2023 um 19:18:37 UTC+2:

> Thanks for the pointer (any reason you point into Androwish instead of
> Tcl?) and thanks for the idea...

since it's not a standard feature but another private and long forgotten hack by me.

BR,
Christian

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<e1a9dfcc-e2b5-405d-9e3b-bb752a4f3925n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12395&group=comp.lang.tcl#12395

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1b9f:b0:3ef:9f74:46b0 with SMTP id bp31-20020a05622a1b9f00b003ef9f7446b0mr5301753qtb.4.1682962463485;
Mon, 01 May 2023 10:34:23 -0700 (PDT)
X-Received: by 2002:ac8:5b87:0:b0:3e4:ed8e:6dd8 with SMTP id
a7-20020ac85b87000000b003e4ed8e6dd8mr4919626qta.6.1682962463268; Mon, 01 May
2023 10:34:23 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 1 May 2023 10:34:23 -0700 (PDT)
In-Reply-To: <644ff543$0$3183$426a74cc@news.free.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=217.232.213.163; posting-account=wi8XUAkAAADhgxlOTzYRDqsuN4By_ngW
NNTP-Posting-Host: 217.232.213.163
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr> <d4711a48-03c0-42fa-9b2c-fa968eea4e5an@googlegroups.com>
<644ff469$0$3183$426a74cc@news.free.fr> <644ff543$0$3183$426a74cc@news.free.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e1a9dfcc-e2b5-405d-9e3b-bb752a4f3925n@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: undroidwish@gmail.com (Christian Werner)
Injection-Date: Mon, 01 May 2023 17:34:23 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1545
 by: Christian Werner - Mon, 1 May 2023 17:34 UTC

Francois Vogel schrieb am Montag, 1. Mai 2023 um 19:22:16 UTC+2:

> ... Deserves a ticket in Tcl repo, isn't it?

Yes, indeedly, see

https://core.tcl-lang.org/tcl/tktview/147b28d0436d4267a3d95082339f78980144b004

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<1c09e0b2-bf38-4cc0-bc30-74869d7ea790n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12396&group=comp.lang.tcl#12396

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1809:b0:3ef:499a:dd97 with SMTP id t9-20020a05622a180900b003ef499add97mr5322492qtc.3.1682996581435;
Mon, 01 May 2023 20:03:01 -0700 (PDT)
X-Received: by 2002:a05:622a:46:b0:3ee:be98:9fce with SMTP id
y6-20020a05622a004600b003eebe989fcemr5345810qtw.1.1682996581089; Mon, 01 May
2023 20:03:01 -0700 (PDT)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Mon, 1 May 2023 20:03:00 -0700 (PDT)
In-Reply-To: <644ff27f$0$3185$426a74cc@news.free.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=122.118.226.74; posting-account=qZRjCAoAAAAR5kQR8hPcT7i0-dAMjKzW
NNTP-Posting-Host: 122.118.226.74
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr> <ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>
<644ff27f$0$3185$426a74cc@news.free.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1c09e0b2-bf38-4cc0-bc30-74869d7ea790n@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: shenyeh.chen@gmail.com (S-Y. Chen)
Injection-Date: Tue, 02 May 2023 03:03:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2911
 by: S-Y. Chen - Tue, 2 May 2023 03:03 UTC

On Tuesday, May 2, 2023 at 1:10:28 AM UTC+8, Francois Vogel wrote:
> Le 01/05/2023 à 18:11, S-Y. Chen a écrit :
> > No not Win 11. I built and run it in Win 10. And it is not only a delay problrm. If the same external program run for 200 seconds in exec of 8.6.0, it will run about 700 seconds in 8.6.12/8.6.13. So I beleive there is something to do with how exec handle the external programs in the OS (or the opposite way).
> OK, so it's not the same problem I have seen. Sorry.
> > The error message related to git is like
> >>>>>>>>>>>> (begin)
> > git rev-parse HEAD >>C:\...\Tcltk_8_6_13\tcl\win\..\manifest.uuid
> > 'git' is not an internal or external command, excutable program or batch file
> > NMAKE : fatal error U1077: 'git rev-parse HEAD >>C:\...\Tcltk_8_6_13\tcl\win\..\manifest.uuid:
> > return code '0x1'
> >>>>>>>>>>>> (end)
> Seems like you don't have git installed.
> TIP #599 has introduced a dependency on fossil or git to get the commit
> id of the thing being compiled. The error message you get should
> indicate both fossil and git are missing from your environment. If it's
> the case: how did you check out the source code? If it's not the case:
> please file a bug report here: https://core.tcl-lang.org/tcl/tktnew
>
> Regards,
> Francois

No I didn't install fossil or git. I just pull out the code archive from SourceForge.

Is the problem of slow exec related to this ? Should I install fossil/git and recompile it again ?

Regards
Chen

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<64516e38$0$3195$426a74cc@news.free.fr>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12397&group=comp.lang.tcl#12397

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abe001.abavia.com!proxad.net!feeder1-1.proxad.net!cleanfeed1-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Tue, 2 May 2023 22:10:31 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.1
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr>
<ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>
<644ff27f$0$3185$426a74cc@news.free.fr>
<1c09e0b2-bf38-4cc0-bc30-74869d7ea790n@googlegroups.com>
From: francois.vogel.fv.NOSPAM@gmail.com (Francois Vogel)
In-Reply-To: <1c09e0b2-bf38-4cc0-bc30-74869d7ea790n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: Avast (VPS 230502-2, 2/5/2023), Outbound message
X-Antivirus-Status: Clean
Lines: 13
Message-ID: <64516e38$0$3195$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 02 May 2023 22:10:32 CEST
NNTP-Posting-Host: 82.65.57.56
X-Trace: 1683058232 news-3.free.fr 3195 82.65.57.56:53565
X-Complaints-To: abuse@proxad.net
X-Received-Bytes: 1556
 by: Francois Vogel - Tue, 2 May 2023 20:10 UTC

Le 02/05/2023 à 05:03, S-Y. Chen a écrit :
> No I didn't install fossil or git. I just pull out the code archive from SourceForge.

OK. No bug then.

> Is the problem of slow exec related to this ?

With 99% chances it's not.

Regards,
Francois

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<0cd8b480-53d8-470e-80a0-b3ebb7ebc6bdn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12399&group=comp.lang.tcl#12399

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:1647:b0:74d:fd99:ab3f with SMTP id c7-20020a05620a164700b0074dfd99ab3fmr3363701qko.5.1683081440511;
Tue, 02 May 2023 19:37:20 -0700 (PDT)
X-Received: by 2002:a05:622a:1885:b0:3e6:3806:70e3 with SMTP id
v5-20020a05622a188500b003e6380670e3mr6830840qtc.8.1683081440190; Tue, 02 May
2023 19:37:20 -0700 (PDT)
Path: rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 2 May 2023 19:37:19 -0700 (PDT)
In-Reply-To: <64516e38$0$3195$426a74cc@news.free.fr>
Injection-Info: google-groups.googlegroups.com; posting-host=122.118.226.74; posting-account=qZRjCAoAAAAR5kQR8hPcT7i0-dAMjKzW
NNTP-Posting-Host: 122.118.226.74
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<644fd85a$0$3187$426a74cc@news.free.fr> <ae4eb9d4-41a4-4d6c-a245-11778db9516bn@googlegroups.com>
<644ff27f$0$3185$426a74cc@news.free.fr> <1c09e0b2-bf38-4cc0-bc30-74869d7ea790n@googlegroups.com>
<64516e38$0$3195$426a74cc@news.free.fr>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0cd8b480-53d8-470e-80a0-b3ebb7ebc6bdn@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: shenyeh.chen@gmail.com (S-Y. Chen)
Injection-Date: Wed, 03 May 2023 02:37:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2026
 by: S-Y. Chen - Wed, 3 May 2023 02:37 UTC

On Wednesday, May 3, 2023 at 4:12:03 AM UTC+8, Francois Vogel wrote:
> Le 02/05/2023 à 05:03, S-Y. Chen a écrit :
> > No I didn't install fossil or git. I just pull out the code archive from SourceForge.
> OK. No bug then.
> > Is the problem of slow exec related to this ?
> With 99% chances it's not.
>
> Regards,
> Francois

Any idea what may cause the slow-down of exec ? Maybe I just take out all the "WaitForInputIdle" command and try again ?

Regards
Chen

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<ygav8h9u7ac.fsf@akutech.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12400&group=comp.lang.tcl#12400

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Date: Wed, 03 May 2023 10:51:39 +0200
Lines: 19
Message-ID: <ygav8h9u7ac.fsf@akutech.de>
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net rAzmZReolOtojP3jjAexHwYcNLnmRNBNM7mi5um6kMrrQBX8s=
Cancel-Lock: sha1:/9aOKAJQj/W/LwiQnFc1Ls+RFj0= sha1:Ace7zOD+HJhHwYiY8Iqd2gvG4Lk=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Wed, 3 May 2023 08:51 UTC

* "shenye...@gmail.com" <shenyeh.chen@gmail.com>
| I have this very strange problem, and is wondering if anyone has this experience.
>
| I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized
| command bulit into tcl. But I have been doing this for quite a while
| without any problem.
>
| For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to
| run an external programs will take more than 3 times of executipn time
| than using tcl 8.6.0 (from star to end of the external program).

Could you check whether a stock precompiled 8.6.13
(eg. https://sourceforge.net/projects/magicsplat/files/magicsplat-tcl/)
shows the same slow-down as your version?

A difference of 700s vs 200s as you noted elsethread sounds very
severe. I have difficulties to imagine what exec would do to cause this.

R'

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<u2t7kb$17iqb$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12401&group=comp.lang.tcl#12401

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Date: Wed, 3 May 2023 10:56:43 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <u2t7kb$17iqb$1@dont-email.me>
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<ygav8h9u7ac.fsf@akutech.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 May 2023 08:56:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="630662dc831dcd4f8e883e85fc1499aa";
logging-data="1297227"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SCG7JTtSVVHpqGdTktYsTU6gB97Qln1A="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.10.0
Cancel-Lock: sha1:l+ZJYh3IVbtgjKj9kMWrD9KoqhE=
In-Reply-To: <ygav8h9u7ac.fsf@akutech.de>
 by: Christian Gollwitzer - Wed, 3 May 2023 08:56 UTC

Am 03.05.23 um 10:51 schrieb Ralf Fassel:
> * "shenye...@gmail.com" <shenyeh.chen@gmail.com>
> | I have this very strange problem, and is wondering if anyone has this experience.
>>
> | I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized
> | command bulit into tcl. But I have been doing this for quite a while
> | without any problem.
>>
> | For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to
> | run an external programs will take more than 3 times of executipn time
> | than using tcl 8.6.0 (from star to end of the external program).
>
> Could you check whether a stock precompiled 8.6.13
> (eg. https://sourceforge.net/projects/magicsplat/files/magicsplat-tcl/)
> shows the same slow-down as your version?
>

Good idea.

> A difference of 700s vs 200s as you noted elsethread sounds very
> severe. I have difficulties to imagine what exec would do to cause this.
>

My guess would be the antivirus scanner. Maybe there is something in Tcl
which prompts the scanner to check the exec in one version but not the
other. Also, caching can be an issue, so one should make sure that the
shortened time does not occur only on the second run over the same files.

Christian

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<ygao7n1u6ya.fsf@akutech.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12402&group=comp.lang.tcl#12402

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Date: Wed, 03 May 2023 10:58:53 +0200
Lines: 23
Message-ID: <ygao7n1u6ya.fsf@akutech.de>
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net y3UeFinF8Bh6rMebkU41GA3rX4sF5LwjWmbhIa/M8XRcpk7p8=
Cancel-Lock: sha1:RfYMTlpNRL3HCKdTWgvbHEBm6MA= sha1:L2sIBv3zTcRZ4JiRY0m6mIXusfU=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Wed, 3 May 2023 08:58 UTC

* "shenye...@gmail.com" <shenyeh.chen@gmail.com>
| I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized
| command bulit into tcl. But I have been doing this for quite a while
| without any problem.

Same compiler, 8.6.13 here, with no such problem observed.

| For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to
| run an external programs will take more than 3 times of executipn time
| than using tcl 8.6.0 (from star to end of the external program).

Another idea would be to wrap the external program in a batch file which
logs the start and end times around the call, so you could see whether
it is indeed 'exec' or the external program taking different runtimes in
both circumstances.

@echo off
time /t < nul > timelog.txt
your command goes here
time /t < nul >> timelog.txt
REM EOF

R'

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<ae0560e5-a52f-47f2-824d-8897cd06ab56n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12403&group=comp.lang.tcl#12403

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:18a3:b0:3f0:a400:712e with SMTP id v35-20020a05622a18a300b003f0a400712emr178858qtc.10.1683131744420;
Wed, 03 May 2023 09:35:44 -0700 (PDT)
X-Received: by 2002:ad4:4f32:0:b0:5ef:46c4:fc4d with SMTP id
fc18-20020ad44f32000000b005ef46c4fc4dmr1463030qvb.10.1683131744182; Wed, 03
May 2023 09:35:44 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 3 May 2023 09:35:43 -0700 (PDT)
In-Reply-To: <ygao7n1u6ya.fsf@akutech.de>
Injection-Info: google-groups.googlegroups.com; posting-host=122.118.199.125; posting-account=qZRjCAoAAAAR5kQR8hPcT7i0-dAMjKzW
NNTP-Posting-Host: 122.118.199.125
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com> <ygao7n1u6ya.fsf@akutech.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ae0560e5-a52f-47f2-824d-8897cd06ab56n@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: shenyeh.chen@gmail.com (S-Y. Chen)
Injection-Date: Wed, 03 May 2023 16:35:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 28
 by: S-Y. Chen - Wed, 3 May 2023 16:35 UTC

On Wednesday, May 3, 2023 at 4:59:09 PM UTC+8, Ralf Fassel wrote:
> * "shenye...@gmail.com" <shenye...@gmail.com>
> | I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized
> | command bulit into tcl. But I have been doing this for quite a while
> | without any problem.
> Same compiler, 8.6.13 here, with no such problem observed.
> | For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to
> | run an external programs will take more than 3 times of executipn time
> | than using tcl 8.6.0 (from star to end of the external program).
> Another idea would be to wrap the external program in a batch file which
> logs the start and end times around the call, so you could see whether
> it is indeed 'exec' or the external program taking different runtimes in
> both circumstances.
>
> @echo off
> time /t < nul > timelog.txt
> your command goes here
> time /t < nul >> timelog.txt
> REM EOF
>
>

I will take some time to test. Please wait for my result.

Chen

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<u2ucd5$1dmop$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12404&group=comp.lang.tcl#12404

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Date: Wed, 3 May 2023 12:24:21 -0700
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <u2ucd5$1dmop$1@dont-email.me>
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<ygao7n1u6ya.fsf@akutech.de>
<ae0560e5-a52f-47f2-824d-8897cd06ab56n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 3 May 2023 19:24:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="196ef4404ad34d61bbe1732f6059ba9b";
logging-data="1497881"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191iW347qEUzqamu9PN3zvd"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:ziFzu8GT6HDDPYGKRhbImwQm3R0=
In-Reply-To: <ae0560e5-a52f-47f2-824d-8897cd06ab56n@googlegroups.com>
Content-Language: en-US
 by: et99 - Wed, 3 May 2023 19:24 UTC

On 5/3/2023 9:35 AM, S-Y. Chen wrote:
> On Wednesday, May 3, 2023 at 4:59:09 PM UTC+8, Ralf Fassel wrote:
>> * "shenye...@gmail.com" <shenye...@gmail.com>
>> | I use Visual Studio 2022 to build tcl/tk 8.6.12 with some customized
>> | command bulit into tcl. But I have been doing this for quite a while
>> | without any problem.
>> Same compiler, 8.6.13 here, with no such problem observed.
>> | For tcl shell 8.6.12 and 8.6.13(with tk86t.dll loaded), use exec to
>> | run an external programs will take more than 3 times of executipn time
>> | than using tcl 8.6.0 (from star to end of the external program).
>> Another idea would be to wrap the external program in a batch file which
>> logs the start and end times around the call, so you could see whether
>> it is indeed 'exec' or the external program taking different runtimes in
>> both circumstances.
>>
>> @echo off
>> time /t < nul > timelog.txt
>> your command goes here
>> time /t < nul >> timelog.txt
>> REM EOF
>>
>>
>
> I will take some time to test. Please wait for my result.
>
>
> Chen

I would suggest you post your code that does the exec, just in
case. Apologies if you did, I didn't closely read all the replies.

If it is a virus check, does the .exe file with right click properties
show unblock? When it does on my win 10, it still runs it but does the
virus check (or something that takes many seconds).

Can you substitute your executable with something like

exec cmd /c dir >nul:

and see if there's a difference. The dir should go quite fast.

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<ygajzxotp2x.fsf@akutech.de>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12407&group=comp.lang.tcl#12407

  copy link   Newsgroups: comp.lang.tcl
Path: rocksolid2!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
Date: Thu, 04 May 2023 11:37:10 +0200
Lines: 30
Message-ID: <ygajzxotp2x.fsf@akutech.de>
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<ygao7n1u6ya.fsf@akutech.de>
<ae0560e5-a52f-47f2-824d-8897cd06ab56n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ounpmJ4Ty50tyArlz5S2aQFFpyX8PyOE2aeSaQuNQDt4wUagM=
Cancel-Lock: sha1:tWol9OdZYj83fGwS2CgRFKD/0Vw= sha1:MaoeTunjqFBsbPWpL0FYsOjhLFU=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
 by: Ralf Fassel - Thu, 4 May 2023 09:37 UTC

* "S-Y. Chen" <shenyeh.chen@gmail.com>
| On Wednesday, May 3, 2023 at 4:59:09 PM UTC+8, Ralf Fassel wrote:
| > Another idea would be to wrap the external program in a batch file which
| > logs the start and end times around the call, so you could see whether
| > it is indeed 'exec' or the external program taking different runtimes in
| > both circumstances.
| >
| > @echo off
| > time /t < nul > timelog.txt
| > your command goes here
| > time /t < nul >> timelog.txt
| > REM EOF
| >
| >
>
| I will take some time to test. Please wait for my result.

Better make those 'time' commands

time < nul > timelog.txt

(without the /t) since non-interactive /t only shows minutes (no
seconds) on my Windows 10.

I don't know any simple command line program like Unix' 'date' on
Windows, so I'd suggested 'time'. The redirection from < nul is
necessary since time is interactive by default.

HTH
R'

Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

<5438799b-aece-4790-804d-34c456fdb993n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12408&group=comp.lang.tcl#12408

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1a0c:b0:3f0:a9a0:45e3 with SMTP id f12-20020a05622a1a0c00b003f0a9a045e3mr1495977qtb.12.1683217136413;
Thu, 04 May 2023 09:18:56 -0700 (PDT)
X-Received: by 2002:a05:620a:25cb:b0:74d:562e:440d with SMTP id
y11-20020a05620a25cb00b0074d562e440dmr43630qko.6.1683217136068; Thu, 04 May
2023 09:18:56 -0700 (PDT)
Path: rocksolid2!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 4 May 2023 09:18:55 -0700 (PDT)
In-Reply-To: <ygajzxotp2x.fsf@akutech.de>
Injection-Info: google-groups.googlegroups.com; posting-host=122.118.199.125; posting-account=qZRjCAoAAAAR5kQR8hPcT7i0-dAMjKzW
NNTP-Posting-Host: 122.118.199.125
References: <1e987db3-a0b4-4a99-8cf2-88ca52e89102n@googlegroups.com>
<ygao7n1u6ya.fsf@akutech.de> <ae0560e5-a52f-47f2-824d-8897cd06ab56n@googlegroups.com>
<ygajzxotp2x.fsf@akutech.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5438799b-aece-4790-804d-34c456fdb993n@googlegroups.com>
Subject: Re: tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow
From: shenyeh.chen@gmail.com (S-Y. Chen)
Injection-Date: Thu, 04 May 2023 16:18:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3647
 by: S-Y. Chen - Thu, 4 May 2023 16:18 UTC

On Thursday, May 4, 2023 at 5:39:17 PM UTC+8, Ralf Fassel wrote:
> * "S-Y. Chen" <shenye...@gmail.com>
> | On Wednesday, May 3, 2023 at 4:59:09 PM UTC+8, Ralf Fassel wrote:
> | > Another idea would be to wrap the external program in a batch file which
> | > logs the start and end times around the call, so you could see whether
> | > it is indeed 'exec' or the external program taking different runtimes in
> | > both circumstances.
> | >
> | > @echo off
> | > time /t < nul > timelog.txt
> | > your command goes here
> | > time /t < nul >> timelog.txt
> | > REM EOF
> | >
> | >
> >
> | I will take some time to test. Please wait for my result.
> Better make those 'time' commands
>
> time < nul > timelog.txt
>
> (without the /t) since non-interactive /t only shows minutes (no
> seconds) on my Windows 10.
>
> I don't know any simple command line program like Unix' 'date' on
> Windows, so I'd suggested 'time'. The redirection from < nul is
> necessary since time is interactive by default.
>
> HTH
> R'

I found the problem. It was not caused by tcl. I will explain here.

Using the precompiled tcl does help a lot.
The external program I called with exec is an engineering computation program. I call that program by throwing a script file to the program, which will open en existing data file to process.

Using the precompiled tcl produced two different results. One with normal time and one with about 3 times the span. Be aware that these are two data files but supposedly with totally the same contents (at lease from the users' point of view). The same results were re-produced by my own version of tcl/tk 8.6.13.

I was able to pin down that, even these two data files do have the same contents, one of them does take longer time to open and process in the engineering program. From my experience there should be corruption in its data structure. So I am working to figure out the problem, but that's another story..

Precompiled tcl did take longer time to run with tk86t.dll loaded though.

Sorry for the trouble, and thank you for all the help.

Regards
Chen


devel / comp.lang.tcl / tcl/tk 8.6.12 (built by VS 2022) exec command extremely slow

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor