News for hackers. Stuff that matters.
Re:Avoid character-by-character processing when performance ... by BeeOnRope on Saturday July 25, 2020 @09:44AM (#23949107)
The benefit of unrolling like this is quite small: just some reduction of loop overhead. The primary trick demonstrated here is combining 8 checks into a single operation.
Re:Avoid character-by-character processing when performance ... by deathanatos on Saturday July 25, 2020 @03:37PM (#23951786)
Oh, absolutely, the trick demonstrated in the article is significantly better. (That I had to elide 75% of the instructions in the psuedo-code that I wrote is practically proof of that.) My point was only that it is possible to unrolled the loop without introducing UB.