News for hackers. Stuff that matters.
Re:Removing characters from strings faster with AVX-512 by ip26 on Sunday May 01, 2022 @01:15PM (#31226717)
Is it generally possible to convert rep str sequences to AVX? Could the hardware or compiler already be doing this?

AVX is just the SIMD unit. I would argue the transistors were spent on SIMD, and the hitch is simply the best way to send str commands to the SIMD hardware.

Re:Removing characters from strings faster with AVX-512 by nwmcsween on Sunday May 01, 2022 @08:22PM (#31230073)
Why? IIRC something like 99% of string operations are on 20 chars or less. If you're hitting bottlenecks then optimize.
Re:Removing characters from strings faster with AVX-512 by ip26 on Tuesday May 03, 2022 @02:20AM (#31245294)
If you are arguing most string ops have just a few chars and therefore don’t use vectors… why do we need to spend silicon enhancing rep prefix in the first place?