------- Comment #3 from falk at debian dot org  2009-02-01 10:50 -------
The main problem is that just replacing the code by the below loop won't
necessarily give a speedup. strlen is usually implemented in highly efficient
and platform-specific assembly that treats several bytes at a time. I don't
think the vectorizer will give equally efficient code for the loop. Also, in
normal applications almost all strings are pretty short (and not of very
unequal length). Probably the best way to motivate somebody to look into this
is if you gave benchmark results that show a noticeable improvement for some
real-world application.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38986

Reply via email to