[REBOL] Re: Question: [ searching for answer on GUI speed ]
From: sunandadh:aol at: 11-Mar-2002 19:31
> For a simple Gui layout menu's the Rebol/view scores quite good
> on performance. But even the slightest extra in GUI mode bring my
> PC down to speeds of a XT machine, NO offence!
I tried to speed up an application I had written, and the one sticking point
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"
Composing the block is almost instant.
On a 1ghz Celeron (Win98), the Layout command alone takes about 1 second to
process 200 lines. That's way too slow. I want to be able to handle 800 lines
(at least) on a 400Mhz Pentium when (if) the application deploys.
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.
Other parts of the application -- including things I thought would be a
problem such as the recursive sorting of tree branches -- are often too fast
Maybe this is in part because VID is really only release 1, and the magic
optimisations are coming along real soon now.
>> Type? :Layout