modification_hooks: potential speed up
commitcb74a9c41d296311b398ee3a2a059ab54defc10a
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 2 Nov 2020 09:44:35 +0000 (2 12:44 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 2 Nov 2020 09:44:35 +0000 (2 12:44 +0300)
treed66edace8473909c4506b4c5de1d24a5ed150574
parent41772448ec2fd7de32d1c6b7466b6c09d91ad079
modification_hooks: potential speed up

For certain files, the modification hooks are one of the big time wasters.
This patch sort of combines the strlen() and the strncmp() into one
function.

I implemented this late at night and had to leave in a hurry when my baby
woke up and started crying so I can't remember what I was testing and
don't have before and after figures to say if it really helps.  It might
not, but it felt good and I hate to throw away work so I'm committing it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_modification_hooks.c