Mercurial > octave-libtiff
comparison scripts/legacy/@inline/nargin.m @ 30912:ec5b57af230a
Improve performance of inline functions.
* NEWS.8.md: Announce compatibility and performance improvements.
* scripts/legacy/@inline/inline.m: Add new field "fh" to inline
class which holds an anonymous function handle implementing the
inline function. Rename member variable "numArgs" to "nargs"
to get away from CamelCase.
* scripts/legacy/@inline/feval.m: Re-use existing class member
variable "fh" to execute function rather than creating it every
time feval() is called.
* scripts/legacy/@inline/nargin.m: Update to use class member
variable "nargs" rather than "numArgs".
author | Rik <rik@octave.org> |
---|---|
date | Wed, 06 Apr 2022 21:47:52 -0700 |
parents | b7edac56a810 |
children |
comparison
equal
deleted
inserted
replaced
30911:b7edac56a810 | 30912:ec5b57af230a |
---|---|
30 ## @seealso{nargout, argnames, inline} | 30 ## @seealso{nargout, argnames, inline} |
31 ## @end deftypefn | 31 ## @end deftypefn |
32 | 32 |
33 function n = nargin (fobj) | 33 function n = nargin (fobj) |
34 | 34 |
35 n = fobj.numArgs; | 35 n = fobj.nargs; |
36 | 36 |
37 endfunction | 37 endfunction |