Skip to content

html and xml named entity tables should be shared #261

Closed
@froydnj

Description

@froydnj

Right now, we have data/entities.json and xml5ever/data/entities.json, which are identical. If a project (such as Servo) requires both html5ever and xml5ever, it'll have duplicate copies of the named entity tables, which are not particularly small--about 230K on x86-64 Linux, roughly half that on 32-bit platforms.

Sticking the entities and the process to generate a phf table for them in a separate, shared crate would alleviate this problem. There might be issues down the road if sets of entities in HTML and XML are no longer identical...but I'm sure solutions can be worked out there if necessary.

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