[RFC] Improve wordexp performance.

Carlos O'Donell carlos@redhat.com
Wed May 13 17:32:00 GMT 2015


On 05/13/2015 08:49 AM, Ondřej Bílka wrote:
> Hi, as I read Paul's wordexp patch I found that you use inefficient
> idiom. Checking character membership with strchr is slow due to startup
> cost. Much better is just use table lookup.

How did you test it was faster?

Could you please add a wordexp microbenchmark to show the gains?

Cheers,
Carlos.



More information about the Libc-alpha mailing list