http-rs / http-rs/async-h1

Parsing Url is one of the most expensive things that async-h1 does

Open
#177 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
166
Forks
49
PR merge metrics
No merged PRs in 30d

Description

In most cases, we parse a url from host and path and then later on only use the path for routing. Holding two &str's on Request and only generating a url if/when it's required would provide performance gains.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Request stores and parses the host and path, then follow how routing consumes those values. Compare the current eager URL parsing with the proposed lazy URL generation; done means routing can use separate host and path references while a URL is generated only when required, without changing request behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.