Improving performance in the layers panel
Case study 8 min +80 XP
Figma rebuilt its layers panel to fix two problems: it computed data for every expanded node, and it recomputed everything after any change.
Figma rebuilt its layers panel to fix two problems: it computed data for every expanded node, and it recomputed everything after any change.
Figma's Rust multiplayer server represented each file node as a BTreeMap from u16 property IDs to pointers, and memory profiling showed this map used over 60% of a file's memory.
Figma extended dynamic page loading from view-only files and prototypes to editable files, cutting load times for the slowest 5% of loads by 33% and reducing client memory.