|author||Mike Gerwitz <firstname.lastname@example.org>||2019-12-23 23:26:42 -0500|
|committer||Mike Gerwitz <email@example.com>||2020-02-24 14:56:28 -0500|
TAMER: Arena-based string interner
Contrary to what I said previously, this replaces the previous implementation with an arena-backed internment system. The motivation for this change was investigating how Rustc performed its string interning, and why they chose to associate integer identifiers with symbols. The intent was originally to use Rustc's arena allocator directly, but that create pulled in far too many dependencies and depended on nightly Rust. Bumpalo provides a very similar implementation to Rustc's DroplessArena, so I went with that instead. Rustc also relies on a global, singleton interner. I do not do that here. Instead, the returned Symbol carries a lifetime of the underlying arena, as well as a pointer to the interned string. Now that this is put to rest, it's time to move on.
Diffstat (limited to '.rev-xmlo')
0 files changed, 0 insertions, 0 deletions