Skip to content

[Uri] A lightweight alternative for System.Uri #34873

@Rodrigo-Andrade

Description

@Rodrigo-Andrade

As the SocketsHttpHandler gets faster, many of my hot paths are now in System.Uri class.

There is a lot of parsing in any case of paths and/or QueryString parameters that varies on each request. System.Uri will always validate the entire string, not to mention that a string must be allocated each time. Would be nice to have an alternative, be forsake System.Uri for a new type in HttpRequestMessage, or provide "unsafe" apis for System.Uri, so it would not validate every part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions