3 ms·
So you're comparing inlined rep scasb, with non-inlined alternative. Interesting comparison I guess. Sure, it would bloat the code a little to inline the optim
by axod 18y ago
So you're comparing inlined rep scasb, with non-inlined alternative. Interesting comparison I guess.
Sure, it would bloat the code a little to inline the optimized version, but it could be done in tight inner loops if required.
- tptacek 18y agoI'm assuming you're not inlining a function with a loop in it, but OK, you can also just expand the 7 insns everywhere you call strlen.