speed up vips_argument_map()

This commit is contained in:
John Cupitt 2012-05-31 13:56:58 +01:00
parent f19a9d9d6b
commit a0b3573b59
2 changed files with 3 additions and 2 deletions

View File

@ -332,7 +332,8 @@ int vips_object_get_argument_priority( VipsObject *object, const char *name );
/* We have many props on the arg table ... filter out the \ /* We have many props on the arg table ... filter out the \
* ones for this class. \ * ones for this class. \
*/ \ */ \
if( g_object_class_find_property( \ if( ARG_INSTANCE && \
g_object_class_find_property( \
G_OBJECT_CLASS( object_class ), \ G_OBJECT_CLASS( object_class ), \
g_param_spec_get_name( PSPEC ) ) == PSPEC ) { g_param_spec_get_name( PSPEC ) ) == PSPEC ) {

View File

@ -346,7 +346,7 @@ vips_argument_table_destroy( VipsArgumentTable *table )
* non-%NULL value from @fn. * non-%NULL value from @fn.
*/ */
void * void *
vips_argument_map( VipsObject *object, vips_argument_map1( VipsObject *object,
VipsArgumentMapFn fn, void *a, void *b ) VipsArgumentMapFn fn, void *a, void *b )
{ {
/* Make sure we can't go during the loop. This can happen if eg. we /* Make sure we can't go during the loop. This can happen if eg. we