Oh - agreed! That's why I said "If you could afford..."! I've squeezed
dictionary compression into that tiny heap, so I understand your
dilemma.
-jjf
-----Original Message-----
From: Bob Ebert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 14, 2000 1:51 AM
To: Palm Developer Forum
Cc: Palm Developer Forum
Subject: RE: WinRGBToIndex slow ?
At 12:03 AM +0100 14-03-00, Fitzpatrick, Joe wrote:
>If you could afford the memory, it would probably make a lot of sense
to
>keep a shadow of the table in a different color space (ex. HSV). You
>could then basically use the same loop for grayscale and RGB. Better
>yet, you could hash the HSV values and make the test for matches a lot
>faster as well.
Those are good points. However, memory is tight on the Palm. Most
PostScript printers have more memory than a Palm device, after all! So
we
picked the current algorithm because it's fast (enough), cheap (enough),
and good (enough).
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html