Skip to content

Unneeded temporary objects while URL parsing #1304

@ecki

Description

@ecki

The URL parser state engine generates for each character read a StringBuilder and a new String object. This is not needed. Instead you can keep the StringBuilder, append it until the result step where you use a single toString(). Also in the initial state you dont need the append(result).

BTW: it looks like there is no state für ipv6 [1:2:3:4] literals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions