Is this code snippet in a critical path?? If not, I'd be in favor of retaining the obvious code than try to grind thru this optimization
On Mar 17, 2014, at 1:36 PM, Jeffrey Walton <[email protected]> wrote: > On Mon, Mar 17, 2014 at 4:27 PM, james <[email protected]> wrote: >> On 17/03/2014 19:45, Jeffrey Walton wrote: >>> >>> That's 4 OR's, 1 shift an 1 compare versus 8 compares. >> >> What on earth is the point of replacing a verbose-but-obvious code sequence >> with a crafty one, to save a trivial time and space, when immediately prior >> we just did an sscanf? Have you tried timing sscanf? > No, but I can't make sscanf any faster. > > Jeff > *********************************************************************** > To unsubscribe, send an e-mail to [email protected] with > unsubscribe libevent-users in the body. *********************************************************************** To unsubscribe, send an e-mail to [email protected] with unsubscribe libevent-users in the body.
