[REBOL] Re: Question: [ searching for answer on GUI speed ]
From: sunandadh:aol at: 13-Mar-2002 6:53
Thanks very much for the suggestions:
> What about:
> Style tgl Toggle 15x15 "-" "+" false
> Style nde Text blue bold font-size 14
I tried a variant on the Toggle, as I need both 'false and 'true settings
depending on whether a tree branch is open or closed.
Style tglF Toggle 15x15 "-" "+" false
Style tglT Toggle 15x15 "-" "+" true
Unfortunately, it speeded the layout by under 1% -- not statistically
significant, given the jitter. It is less feasible to use a Nde style as the
attributes (font color, size, etc) vary from node to node.
> edge copy  ; why? the copy should not be needed either
> Do [Append ESINTREE-TEMP ESINTREE-TEMPITEM]
These are definite quality improvements in the code, but make no measurable
difference in the time to Layout.
> You should try two approaches:
> - face iteration. I'm not saying it is easier but it could be
> faster, and surely takes a lot less memory.
Given you've mentioned memory, it's reminded me that the timings I've done on
Layout are incredibly erratic.
Where I've quoted a time (or an improvement in timing) it's on a first run in
a new console session. Five minutes of use in the application can double the
I've tried 'recycle -- it makes no difference. Recycle/torture (what's it
meant to do anyway?) tends to hang the application.
> - directly manipulating faces, and maybe using the draw effect to
> reduce the number of faces (you've got only two per row anyway,
> so it's not a big deal). It is easier than you'd expect, and
> will be much faster (in particular for operations that only
> require moving faces, which will use hardware acceleration).
I'll give it a try!
Thanks again for all the suggestions.