[REBOL] Re: Question: [ searching for answer on GUI speed ]
From: greggirwin:mindspring at: 11-Mar-2002 22:38
<< I tried to speed up an application I had written, and the one sticking
was Layout. The application creates a tree view from a hierarchical
structure. Nothing fancy, each line is simply made up of:
-- A Pad to indent.
-- For nodes, a Box with a +/- and a left-click action facet.
-- A Text line with a left-click action facet.
-- If the branch is closed, a text That says how many elements are "hidden"
I could, of course, render only the bits that are visible, and write some
interesting code to add faces as the user scrolls them into visibility, or
opens and closes branches. >>
I think rendering only the visible parts is the only way to get things to
scale up, GUI-wise. In your example, you're creating somewhere around 600
faces (if I understand that each of the 200 lines creates a Box, and 2 Text
I have a few ideas sketched out for how I might tackle a grid or tree-view,
but haven't made any stabs at implementations yet. The design path I'm
heading down is centered around DRAW commands rather than individual faces.
I have no idea, yet, what issues I'll run into though.