mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
FS-4928 doing 100 calls I found 7 million calls to toupper, this patch replaces it with an inline optimized one I found online. Not sure it helps but maybe you can profile it again with latest.
This commit is contained in:
@@ -2609,7 +2609,7 @@ const short _switch_C_toupper_[1 + SWITCH_CTYPE_NUM_CHARS] = {
|
||||
|
||||
const short *_switch_toupper_tab_ = _switch_C_toupper_;
|
||||
|
||||
SWITCH_DECLARE(int) switch_toupper(int c)
|
||||
SWITCH_DECLARE(int) old_switch_toupper(int c)
|
||||
{
|
||||
if ((unsigned int) c > 255)
|
||||
return (c);
|
||||
|
Reference in New Issue
Block a user