Re: GUI was Re: why Ada is so unpopular ?

From: Warren W. Gay VE3WWG (warren_at_ve3wwg.tk)
Date: 01/23/04


Date: Fri, 23 Jan 2004 12:37:54 -0500

Jeffrey Carter wrote:

> Warren W. Gay VE3WWG wrote:
>> Marin David Condic wrote:
>>> Wait a minute. Aren't directories usually considered to be some kind
>>> of tree structure? Doesn't MSVC++ and the MFC supply some kind of
>>> tree widget for displaying things like directories? Seems like every
>>> time I pop up a directory on Windows, I see something that looks very
>>> reminiscent of a tree and one that looks surprisingly like the one I
>>> seem to recall was in the MFC. Maybe I'm wrong, but it looks to me
>>> like Microsoft might just be keeping some kind of tree data structure
>>> in place for handling directories. Not that the fact that Microsoft
>>> does something necessarily makes a recomendation for doing the same -
>>> but it would seem like it might not be all that painful for some apps.
>>
>> You're right, but 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. Otherwise performance in large
>> directory cases would not be so abysmal.
>
> The Windows directory tree only shows directories; the thousands of
> files are not part of the tree. This helps reduce the size of the tree.
> The thousands of files are shown in the other pane of the window; as you
> note, it can take a long time to display all the files in a directory
> with many files.

What guarantee do you have that you will not have thousands of
directories? There is no such guarantee, although you might
find it more rare in practice ;-)

-- 
Warren W. Gay VE3WWG
http://ve3wwg.tk


Relevant Pages

  • Re: [PATCH 1/4] [MTD] Update sysfs documentation
    ... This does not guarantee anything, ... it just mean I'll ping dwmw2 to pull from that tree. ...
    (Linux-Kernel)
  • Re: Closed source apps....
    ... >it to compile a module outside the kernel source ... >tree. ... Of course there is no guarantee a module ... >install: all ...
    (comp.os.linux.development.apps)
  • Re: Select treeview node by text or key
    ... You need to iterate the tree to find ... Bear in mind that, unlike the Key, there is no ... > guarantee that the text is unique. ...
    (microsoft.public.vb.general.discussion)