报道正文
本文目录8 个章节
Every changed frame is one console.log call
A commit that changes no cells never reaches the console.
- React 19
<Box>
├ <Text>
└ <Text> 101Commit
React commits through a custom reconciler. 2. Yoga
02Layout
Yoga lays out boxes on whole cells. 3. CellBuffer
03Paint
Only damaged rows repaint. 4. Row hash9f1c08e2a07e5b3131b2c4d9e8d046fa0 calls · 0 B
04Dirty gate
Unchanged frames stop here. 5. RLE
05Encode
3,200 cells become 149 %c spans.
6. console.log
06Emit
Frames are appended at least 66ms apart.
Changed frame Unchanged frame, 0 calls
Appended frames
Clearing the console before each frame leaves it blank until DevTools paints the next one. Turbolog appends each frame instead.
Read the postclear() + log()70.6% blanklog(), appended1.0% blank0.163msFull repaint (layout, paint, encode)0.011msOne-row edit, such as a keystroke0 callsIdle frame149 spans%c arguments for 3,200 cells100×32 dashboard, mean of 1,000 frames · Apple M5 Pro · Bun 1.4.4Turbolog engine docs