From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,714a8558b02b32bb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-23 10:09:44 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newspeer.monmouth.com!cyclone.bc.net!news.uunet.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GUI was Re: why Ada is so unpopular ? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 23 Jan 2004 12:55:21 -0500 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1074880469 198.96.223.163 (Fri, 23 Jan 2004 12:54:29 EST) NNTP-Posting-Date: Fri, 23 Jan 2004 12:54:29 EST Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:4735 Date: 2004-01-23T12:55:21-05:00 List-Id: amado.alves wrote: > <<...this doesn't work very well when you drop > into a directory with thousands of files. A smart tree widget > might just peruse "directory portions", where the tree widget > is visible (perhaps a less than trivial exercise). But I suspect > they take the easy way out, and require all entries to be loaded > in to the widget's dynamic memory...>> > > A solution to this is to have and use standard iterator signatures, defined e.g. as formal packages descendants of Ada.Containers. (As an iterator is clearly an item of container design, iterator signatures belong there.) (BTW, you need to word wrap your responses. When not wrapped to a reasonable line length, they are difficult to read and edit). There are several implementations that can address the performance issue when it comes to the widget. I am not so easily convinced that this is possible for a container of "entries". Unless the O/S can tell you without an exhaustive search of the directory, how many "entries" you have, some of that same overhead is still there (memory is excluded, but the reading + counting of directory entries is still there). So I don't disagree on theoretical grounds, but in practice I don't think this would work well. -- Warren W. Gay VE3WWG http://ve3wwg.tk