Skip to content

Reduce size of syntax::tokenstream::TokenTree #54535

Closed
@dtolnay

Description

@dtolnay

#53902 raised the size of TokenTree from 32 bytes to 40 bytes, resulting in increased max-rss across a variety of benchmarks by up to 6%.

Here are the data structures involved: playground

Even among the 32 bytes a lot of those were padding. It should be possible to rearrange a few things to drop back to 32 bytes while retaining all the information currently represented.

@nnethercote

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-compiletimeIssue: Problems and improvements with respect to compile times.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions