mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
Inline records of at most 16 bytes into the two-word RecordValue with layout-resolved storage
This commit is contained in:
@@ -481,7 +481,7 @@ impl BorrowTree {
|
||||
pub fn stack_need(&self) -> usize {
|
||||
self.nodes
|
||||
.values()
|
||||
.map(|(handle, _)| handle.layout().map_or(0, |layout| layout.size.next_multiple_of(8)))
|
||||
.map(|(handle, _)| handle.layout().map_or(0, |layout| layout.frame_bytes()))
|
||||
.sum()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user