[GEM-dev] Why is [hsv2rgb] implemented as an abstraction?
IOhannes m zmoelnig
zmoelnig at iem.at
Tue Dec 11 16:33:27 CET 2007
Claude Heiland-Allen wrote:
> Hi all,
>
> Just wondering why hsv2rgb.pd (which is pretty incomprehensible) isn't a
> compiled external. I had to write a C implementation because the Pd
> implementation was too slow. Some rough benchmarks:
>
> CPU: 1.6GHz Pentium-M
> Patch: rather complex, with 25*1024 calls to hsv2rgb per second.
> CPU-load as reported by load-meter.pd:
> hsv2rgb.pd : 108%
> fast_hsv2rgb.c : 94%
>
> Quite a difference.
honestly i think that the difference is way less than i would have
expected it.
it means that a super-fast implementation in C using the latest compiler
optimization and whatelse is only about 14% faster than a whole punch of
indirection and overhead induced by pd's message parsing....
fgmasdr.
IOhannes
More information about the GEM-dev
mailing list