On Thu, Feb 14, 2008 at 01:05:17PM -0700, Ryan Warnick wrote:
> We would like to be able to use any query parameter that we want (without
> out it having to start with a ;).
OK I see now. IIRC, the semi-colon was selected because of common use on existing applications (Aleks correct me if I'm wrong). The semi-colon was not the start of the parameter name, but used as a separator between previous parameter and the one we care about. I think that we should just check that the parameter is either at the beginning of the query string, or preceeded by a non-alphanum (nor any of '_', '-' and a few other ones).
> Also, thanks for your critique of our proposed change. You are absolutely
> right, we should use something like memmem instead.
I'm just realizing that since the cookie name is fix and checked for every request, it may make sense to use a boyer-moore search method, and construct the table at configuration time. That way, the longer the cookie, the faster the scan. And with an average size around 10 chars (JSESSIONID, ...), it would make parsing 10 times faster.
Regards,
Willy
Received on 2008/02/14 22:09
This archive was generated by hypermail 2.2.0 : 2008/02/14 22:15 CET