Skip to content

Assign memo ingredients per salsa-struct-ingredient, not globally #600

@nikomatsakis

Description

@nikomatsakis

Today every tracked function gets assigned a distinct MemoIngredientIndex. These are used to index into the memo table attached to a salsa struct. But every function can be attached to salsa structs of exactly one kind, so indices only have to be distinct per salsa struct, not globally. This would save a lot of space in larger projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions