delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
X-Mailer: | exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3 |
X-Exmh-Isig-CompType: | repl |
X-Exmh-Isig-Folder: | inbox |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] Dynamic loading personal components (with subfolder) into the search component tree of gschem |
In-reply-to: | <CAAVSQ3uBNwxNorgZCP9oo=vTmF-WZOc=KpEF-xJMTm+UNnr1EQ@mail.gmail.com> |
References: | <CAAVSQ3vnFZkWdWn=LCbf+WSM0vOx9pwW+OaeTs47EdO8nfmC_w AT mail DOT gmail DOT com> <20111130211002 DOT 32B5081F6275 AT turkos DOT aspodata DOT se> <CAAVSQ3tkg3es-uBn+yFroysi5xAOtNqW5hTs2yAWQfo47rUaVQ AT mail DOT gmail DOT com> <20111203133340 DOT E09A181D541B AT turkos DOT aspodata DOT se> <CAAVSQ3tQLSsBoCjzDE+qAGrVAzCJKzocACyMOkxVBPUqyLBD7Q AT mail DOT gmail DOT com> <20111203215549 DOT 238A581D5424 AT turkos DOT aspodata DOT se> <CAAVSQ3uJh64W9wxMof1FS4swK3amYrX0eAqyS+e-nd1vOGJSQA AT mail DOT gmail DOT com> <CAAVSQ3uuCcY8wwhsAAzC6BktW4wE9N4dHxpxXupnUApZNf52KQ AT mail DOT gmail DOT com> <20111205214441 DOT 3691881D543C AT turkos DOT aspodata DOT se> <CAAVSQ3uBNwxNorgZCP9oo=vTmF-WZOc=KpEF-xJMTm+UNnr1EQ AT mail DOT gmail DOT com> |
Comments: | In-reply-to Luigi Salvatore Palese <ultrabit AT gmail DOT com> |
message dated "Tue, 06 Dec 2011 13:28:14 +0100." | |
Mime-Version: | 1.0 |
Message-Id: | <20111207110454.863D581F6265@turkos.aspodata.se> |
Date: | Wed, 7 Dec 2011 12:04:53 +0100 (CET) |
From: | karl AT aspodata DOT se (Karl Hammar) |
X-Virus-Scanned: | ClamAV using ClamSMTP |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Luigi: > On Mon, Dec 5, 2011 at 10:44 PM, Karl Hammar <karl AT aspodata DOT se> wrote: > > > Luigi: > > ... > > > In attachment an improved version of the script. > > ... > > > > That version works fine. > > > > It seems a little strange, though, to use both ftw and opendir. > > > Let me to explain why this decision. In my point of view we have two > targets: > > a) build a list with the sub-folders, and > b) skip sub-folder with no files or files other than .sym > > So the ftw system is very fast to build the tree of sub-folders, but it > scans all the tree in depth. I haven't found any option to stop it at the > first level of the tree. This is the real reason on the why i use readdir ... From "info guile": -- Function: nftw startname proc ['chdir] ['depth] ['hash-size n] nftw has a depth argument. [performance measurements]... > real 0m1.229s > user 0m0.980s > sys 0m0.152s > > The better i can do :-D If you want I can compare it with my c-version. ... > Karl, please look at code in attachment and say me if can be accepted as > is. I think this can be proposed for inclusion in geda. Works like a charm! I "accept" it, but I can't talk for others. > PS: > Peter in bcc as FYI Ok. Btw, Peter send me some code I don't understand. I'm fine with whatever you comes up with. Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |