diff options
author | Jeremy Allison <jra@samba.org> | 2000-01-26 00:12:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-01-26 00:12:35 +0000 |
commit | e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c (patch) | |
tree | a074521709f35ce1d63acbaf6e0a1cebe38b12e1 /source/smbd | |
parent | fc0219c7cc4b83e6db17d5b3be70d74fd7971089 (diff) | |
download | samba-e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c.tar.gz samba-e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c.tar.xz samba-e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c.zip |
Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Stop makeing function calls for every use of skip_multibyte_char. This function
is called several *million* times during a NetBench run :-).
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/mangle.c | 8 | ||||
-rw-r--r-- | source/smbd/reply.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c index 4c306ad00f8..e47bcd896f6 100644 --- a/source/smbd/mangle.c +++ b/source/smbd/mangle.c @@ -255,7 +255,7 @@ static BOOL is_illegal_name( char *name ) s = (unsigned char *)name; while( *s ) { - skip = skip_multibyte_char( *s ); + skip = get_character_len( *s ); if( skip != 0 ) { s += skip; @@ -374,7 +374,7 @@ BOOL is_8_3( char *fname, BOOL check_case ) dot_pos = NULL; while( *p ) { - if( (skip = skip_multibyte_char( *p )) != 0 ) + if( (skip = get_character_len( *p )) != 0 ) p += skip; else { @@ -878,7 +878,7 @@ void mangle_name_83( char *s) *p++ = 0; while( *p && extlen < 3 ) { - skip = skip_multibyte_char( *p ); + skip = get_character_len( *p ); switch( skip ) { case 2: @@ -912,7 +912,7 @@ void mangle_name_83( char *s) while( *p && baselen < 5 ) { - skip = skip_multibyte_char(*p); + skip = get_character_len(*p); switch( skip ) { case 2: diff --git a/source/smbd/reply.c b/source/smbd/reply.c index d15a26b20ce..d1ccda1750a 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -1334,7 +1334,7 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size p = mask; while(*p) { - if((skip = skip_multibyte_char( *p )) != 0 ) + if((skip = get_character_len( *p )) != 0 ) { p += skip; } |