Skip to content

proc-macro-srv's TokenStream needs to be backed by a Rope data structure #21050

@Veykril

Description

@Veykril

Concatinating token streams is a very common operation for proc-macros. In r-a, this is currently very expensive due to it just cloning the data into a new contiguous chunk which can result in super slow proc-macro expansions. We should change this to use a rope instead making that operation effectively free.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions