Improving performance in the layers panel
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 replaced its decade-old Instance Updater, a self-contained runtime that resolved component instances and also did its own layout and variable evaluation, with Materializer, a generic framework for deriving subtrees of the document tree from feature-defined blueprints.
Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions.
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's search slowness traced mostly to its own stack, not OpenSearch: OpenSearch's headline 8 ms metric was per-shard time, and only the "took" field in responses reveals overall query latency, which accounted for under 30% of API time.
Figma migrated its prototype viewer's mobile engine from Skew, an in-house compile-to-JavaScript language, to TypeScript using a custom Skew-to-TypeScript transpiler and a three-phase rollout (write/build Skew, write Skew/build TypeScript, write/build TypeScript) that never paused development.
Figma's prototype player used to load entire documents into memory, causing multi-minute loads and crashes on memory-constrained mobile devices.
Figma replaced its single-MacBook performance testing setup with two systems sharing one CI scheduler.
Four Figma outages over June 6–7, 2022 were caused by Engine CPU saturation on a Cluster-Mode Enabled AWS ElastiCache Redis node, triggered by Pub/Sub traffic flowing over the Redis Cluster Bus.