mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-26 21:24:16 +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:
1 parent
61ca331a28
commit
5d35d71cfd
2 files changed
+13
-2
No files matched your search
+1
-1
@@ -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