https://bz.apache.org/bugzilla/show_bug.cgi?id=66437

--- Comment #2 from Christophe JAILLET <christophe.jail...@wanadoo.fr> ---
Created attachment 38484
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38484&action=edit
Patch to remove the <9 limitation for N and M

Hi,

attached a patch that should remove the limitation of N or M <= 9.

Basically, the improvements are:
  - parse the format string only once at start-up and stores each part in a
link chain
  - N and M can be up to an 'int'
  - handle the invariant parts of the "interpolated-directory" one string at a
time, instead of one char at a time

So, I hope that it should also save a few cycles at runtime and easy any other
format extension.

This passes the test-framework modified with:
   VirtualDocumentRoot htdocs/modules/vhost_alias/%2/%1.15/%-2/%2+
                                                       ~~~~


Feedback on the WIP welcomed.


I'll continue on it next week in order to:
   - use varbuf to avoid the final copy of the string and remove the
HUGE_STRING_LEN (8192) limitation

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to