atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Url parsing slow

Open joepio opened this issue 3 years ago • 0 comments

The url::Url::parse() function seems to be extremely slow. Find the bug, or get rid of the library.

Maybe switch to this one: https://github.com/yescallop/fluent-uri-rs

Screenshot 2022-04-25 at 22 18 15

Edit: most of this was due to a tracing statement which cloned a bunch of things. However, even correcting for that, url is still pretty slow. About 300ns for parsing + modifying query params.

joepio avatar Apr 25 '22 20:04 joepio