Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Add fast path for simple URL parsing #7878

Closed
wants to merge 1 commit into from

Commits on Jul 3, 2014

  1. Add fast path for simple URL parsing

    This patch adds a fast path for parsing of simple path-only URLs, as commonly
    found in HTTP requests received by a server.
    
    Benchmark results [ms], before / after patch:
    /foo/bar              0.008956   0.000418 (fast path used)
    http://example.com/   0.011426   0.011437 (normal slow path, no change)
    
    In a simple 'ab' benchmark of a single-threaded web server, this patch
    increases the request rate from around 6400 to 7400 req/s.
    gwicke committed Jul 3, 2014
    Configuration menu
    Copy the full SHA
    e72bfb5 View commit details
    Browse the repository at this point in the history