Skip to content

Stop using @str in the compiler #10516

Closed
Closed
@emberian

Description

@emberian

We almost never want it, and when we do, we're going to want to replace it with a custom interned string type rather than some GC type. We do a lot of pointless copies right now because we get ~str from almost everything and we constantly do str.to_managed().

For now, convert to &str where we can, but replace every use of str.to_managed() with ~str and mark with a comment like /* should be interned */.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions