encode / httpx

A next generation HTTP client for Python. 🦋
https://www.python-httpx.org/
BSD 3-Clause "New" or "Revised" License
12.7k stars 811 forks source link

Fast path returns for normalize_path cases #3189

Closed tomchristie closed 1 month ago

tomchristie commented 2 months ago

Return early for cases where there are no . or .. components in the path.

zanieb commented 2 months ago

Did you do any microbenchmarks? / is this motivated by a particular case?

tomchristie commented 1 month ago

@zanieb good question.

karpetrosyan commented 1 month ago

It's a very small change, I think we can merge this without any microbenchmarks.

tomchristie commented 1 month ago

Okay, let's do that then. It is still a good question. ☺️