On Fri, Aug 13, 2010 at 5:46 PM, Terry Brown <[email protected]> wrote:

> Although plenty of things around here have been killed by analysis paralysis 
> :-) I'm not sure if that was one on them.  Although there was one outstanding 
> question - why you introduced a new hook mechanism in colorize_headlines.py 
> rather than using Leo's regular hook mechanism.  I'm inclined to revert to 
> the regular mechanism, unless you can remember.

Leo's hook mechanism doesn't support priorities, at least. I'd expect
it to be slower as well, but I have no benchmarks to prove it.

What colorize_headlines.py is doing has to be as fast as possible
(because it is executed on every node, on every redraw).

IIRC the analysis paralysis was about how to represent the color
thing. You wanted to hard code the colorizing in tree drawing code
(and look up the color from uA), I wanted to keep it more dynamic and
have colorization in a non-core plugin, utilizing the mechanism as in
colorize_headlines.py (that would possibly look at uA).

-- 
Ville M. Vainio @@ Forum Nokia

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to