This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Improve wordexp performance.
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>, libc-alpha at sourceware dot org
- Date: Wed, 13 May 2015 13:32:00 -0400
- Subject: Re: [RFC] Improve wordexp performance.
- Authentication-results: sourceware.org; auth=none
- References: <20150513124945 dot GA4067 at domone>
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.