- 积分
- 85
- 实力分
- 点
- 金钱数
- 两
- 技术分
- 分
- 贡献分
- 分
|
发表于 2008-1-18 19:33:12
|
显示全部楼层
To the author of the patch!
Code like this is very awful
Код:
if (strlen(text) == strlen(REBOOT)) {
p = strstr(REBOOT, text);
if (p) {...}
}
To optimize this you better use
if (strstr(text, REBOOT)) {...}.
It will be 3 times faster for the phone processor.
(c)1nvisible |
|