mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Use LayoutCache to avoid recomputing layouts
This commit is contained in:
parent
efa486251e
commit
510ab36f51
6 changed files with 238 additions and 168 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue