From: Steinar H. Gunderson Date: Sat, 18 Jan 2014 02:07:47 +0000 (+0100) Subject: Remove pessimization in mlt_properties. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=085b396435ba5e1f784aee97e4b0b33659392876;p=mlt Remove pessimization in mlt_properties. This attempt at optimization is actually detrimental on modern CPUs. Removing it helps playback speed ~0.3%. mlt_properties_get_data() is now down to ~0.6%. --- diff --git a/src/framework/mlt_properties.c b/src/framework/mlt_properties.c index 2a37ab4d..3b42ceeb 100644 --- a/src/framework/mlt_properties.c +++ b/src/framework/mlt_properties.c @@ -507,13 +507,12 @@ static inline mlt_property mlt_properties_find( mlt_properties self, const char { // Check if we're hashed if ( list->count > 0 && - name[ 0 ] == list->name[ i ][ 0 ] && !strcmp( list->name[ i ], name ) ) value = list->value[ i ]; // Locate the item for ( i = list->count - 1; value == NULL && i >= 0; i -- ) - if ( name[ 0 ] == list->name[ i ][ 0 ] && !strcmp( list->name[ i ], name ) ) + if ( !strcmp( list->name[ i ], name ) ) value = list->value[ i ]; } mlt_properties_unlock( self );