On Thu, Nov 26, 2026 at 12:33 PM Yann Ylavic <[email protected]> wrote: > > On Thu, Nov 26, 2026 at 11:52 AM Branko Čibej via dev > <[email protected]> wrote: > > > > I will, however, point out that you're doing this optimisation – which I > > admit is twice as fast as the perfect hash – based on, let me see, I think > > it's exactly zero metrics from real-world usage. > > Not quite, apr_uri_port_of_scheme() shows in httpd benchmarks > (mod_proxy cases mainly). There was a change some times ago (can't > point to it right now) which took it in the fast path and it was > noticeable (IIRC jfclere noticed too).
Here you go: https://lists.apache.org/thread/bfp1yd2cndl91rrt1yzdfv4jq3do22x2 Note that I was already trying to write unmaintainable code 11 years ago :)
