I agree that the precomputed method is faster, but the reason I proposed it wasn't because of its speed advantage. What I heard in your original post is that you really have no good way of knowing ahead of time how many nicks you'll be following, and that the color distance formula really needed to know that. So the color distance formula really only works if you decide ahead of time how many nicks you'll be following. Of course you don't have to use all of the ones you precompute, but you just hold them like cards in a deck, and hand them out as needed.
Dave
In reply to Re^3: Coloring IRC logs nicely
by davido
in thread Coloring IRC logs nicely
by iblech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |