Sujet : Re: How to speed up a script by threading?
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tclDate : 19. Jul 2024, 13:51:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7dngb$304h2$2@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 7/19/2024 5:08 AM, Ralf Fassel wrote:
* Mark Summerfield <mark@qtrac.eu>
| The program below (~95 LOC) is very slow.
| One way to speed it up would be to process each directory given on the
| command line in its own thread.
| But I can't see how to do this.
| Or is there a better way to make it faster?
| I'm using Tcl/Tk 9.0b2 on Linux.
Since you give the directories on the (linux) commandline, put the
one-thread-per-dir one level up:
On linux, it might be easier to just do "find"; it is quite fast.