Hi everyone, I'm reading the rustc guide, and came across the phrase "interns identifiers" (from https://rust-lang.github.io/rustc-guide/the-parser.html , the last sentence on that page). What does it mean for something to be interned?
It means that you are not creating a heap allocation for an identifier every time, but instead have a global table where they are stored and deduplicated. You then just need to store the index into the global table whenever you have an identifier
@Paul Faria @oli if this is not entirely clear in the guides may it worth opening a PR and explaining it better? :)
I'm collecting some notes on my first read through, I'll share them here and then we could create PR's based on that?
Thanks! @Matthew Jasper