Function speeds

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Function speeds

Andy Weller
Hi to all,

Is it fair to say that, in general:
built-in functions are faster than plugins, and
plugins are faster than macros?

Many thanks, Andy
Reply | Threaded
Open this post in threaded view
|

Re: Function speeds

dscho
Hi Andy,

On Wed, 25 Apr 2007, Andy Weller wrote:

> Is it fair to say that, in general:
> built-in functions are faster than plugins, and
> plugins are faster than macros?

If you plan to call them from a macro, then yes.

Having said that, if I have to implement something which should run as
fast as possible, I will write a plugin for it. This plugin will not call
built-in functions, but use the (Java) API of ImageJ.

Hth,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: Function speeds

Wayne Rasband
In reply to this post by Andy Weller
> Is it fair to say that, in general:
> built-in functions are faster than plugins, and
> plugins are faster than macros?

No. Most built-in functions are implemented as plugins so they are not
necessarily faster than user plugins. A plugin that does pixel-by-pixel
processing is much faster than a macro that does pixel-by-pixel
processing, but a plugin that calls built-in functions can be slower
than a batch mode macro that calls built-in functions.

-wayne