Mercurial > octave
view m4/module.mk @ 31260:c5c8bf50449c
Improve performance of isfield from linear time to constant time (bug #58105)
Patch author: Anonymous in Bug #58105 Comment #7
https://savannah.gnu.org/bugs/index.php?58105#comment7
The isfield function was taking time proportional to the number of
fields in a struct to determine whether something was a member or not.
With this change, isfield performance becomes constant irrespective
of the number of fields, speeding up performance by over 200X, and
also allowing the use of struct as a hashmap if the user desires.
ov-base.h: Add new isfield function declaration
ov-base.cc: Add new isfield function definition
ov-struct.h: Add new isfield function definitions
ov-struct.cc: Do not call map_value
ov.h: Add new isfield function definition
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Wed, 05 Oct 2022 10:35:31 -0400 |
parents | 4dc326899f65 |
children |
line wrap: on
line source
EXTRA_DIST += \ %reldir%/module.mk \ %reldir%/ax_blas.m4 \ %reldir%/ax_compare_version.m4 \ %reldir%/ax_cxx_compile_stdcxx.m4 \ %reldir%/ax_lapack.m4 \ %reldir%/ax_openmp.m4 \ %reldir%/ax_pthread.m4 \ %reldir%/gnulib-cache.m4 \ %reldir%/libtool.m4 \ %reldir%/ltoptions.m4 \ %reldir%/ltsugar.m4 \ %reldir%/ltversion.m4 \ %reldir%/lt~obsolete.m4 \ %reldir%/octave_blas.m4 \ %reldir%/pkg.m4