[Tutor] speeding code along

Thomi Richards thomi@thomi.imail.net.nz
Mon Nov 18 06:31:01 2002


> Only if it was a list. 
> Use a dictionary and it will be orders of magnitude faster!
> Of course you need to find a way to identify unique keys, 
> but that shouldn't be impossible - remember tuples can be 
> keys too...

yeah, basically, i found out if the current pixel color was in the
dictionary. if not, i worked it out the old way, if it was, i simple
called the correct values out of the dictionary. simple!

-- 
Thomi Richards
thomi@imail.net.nz
http://ddmodd.sourceforge.net/
Thomi Richards,
thomi@imail.net.nz