Use LayoutCache to avoid recomputing layouts

This commit is contained in:
Richard Feldman 2020-05-09 20:24:55 -04:00
parent efa486251e
commit 510ab36f51
6 changed files with 238 additions and 168 deletions

View file

@ -48,6 +48,10 @@ impl Symbol {
IdentId((self.0 >> 32) as u32)
}
pub fn is_builtin(&self) -> bool {
self.module_id().is_builtin()
}
pub fn module_string<'a>(&self, interns: &'a Interns) -> &'a InlinableString {
interns
.module_ids