From 085b396435ba5e1f784aee97e4b0b33659392876 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 18 Jan 2014 03:07:47 +0100 Subject: [PATCH] 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%. --- src/framework/mlt_properties.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); -- 2.39.2