Skip to content

Url parsing slow #400

Open
Open
@joepio

Description

@joepio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions