curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

improving the URL parsing performance

From: Daniel Stenberg via curl-library <>
Date: Tue, 6 Sep 2022 16:07:40 +0200 (CEST)

Hi team!

I've spent some time and effort the last week on polishing the URL parser. The
current work in progress can be seen here:

To measure the raw parsing performance, I wrote up this benchmark app I call

Before I consider merging this work, I figured I would ask for some additional
feedback on the general take and the benchmarking program.

I've managed to reduce the sizes the number of needed allocations
significantly. The parser also runs slightly faster now. Of course with all
existing behaviors and support intact.

I am interested in knowing

1. if you think we should extend the test program with more/better/different

2. how the performance of this patch looks for others, I have a fairly old
    Intel core 7 and it could be valuable with more data.

3. whatever else you think is revelant! =)

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2022-09-06