Skip to content

Avoid calling OrderedDict unnecessarily #267

Open
@gsnedders

Description

@gsnedders

Making normalizeToken only call OrderedDict when we have more than one attribute leads to a big jump in parsing speed when parsing the HTML spec in some quick testing. Need to make sure we never append to that for it to be a safe optimisation, though.

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