[Tutor] speeding code along
Thomi Richards
thomi@thomi.imail.net.nz
Tue Nov 19 05:27:01 2002
OK, i just thought I'd share the results I've been getting here. With no
pickled lookup table:
bash-2.05b$ ./convert.py
finished file wall-01.jpg, taking 5.194403 seconds
finished file wall-04.jpg, taking 0.995965 seconds
finished file wall-06.jpg, taking 0.673277 seconds
finished file wall-08.jpg, taking 1.808828 seconds
finished file guardhouse.jpg, taking 11.651091 seconds
there were 16140 keys in the colortable!
saving colortable
then on the next run, with the same images, and the lookup table from
before:
bash-2.05b$ ./convert.py
finished file wall-01.jpg, taking 0.740770 seconds
finished file wall-04.jpg, taking 0.199411 seconds
finished file wall-06.jpg, taking 0.203241 seconds
finished file wall-08.jpg, taking 0.794629 seconds
finished file guardhouse.jpg, taking 6.424407 seconds
there were 16140 keys in the colortable!
saving colortable
of course, this is using the same images, so it's actually never working
it out at all, but still,
This is a HUGE improvement, over the 45 second periods i was waiting in
the first version of this program. thanks to all who helped :-)
--
Lord, what fools these mortals be!
-- midsummer nights dream.
Thomi Richards,
thomi@imail.net.nz