docs(crash): use the measured 2.5x in the pane census comment

The JSDoc still carried 3.2x, which was the figure from a bench against a
hypothetical count-only walk with no call and no returned object. Against
the code as shipped it is 2.5x at 200 panes (1.4x at 8, 2.3x at 50, 2.3x
at 1000). The commit message and PR body were corrected; this comment was
missed, and a wrong number in the source outlives the one in the log.
This commit is contained in:
Neil
2026-08-01 07:38:36 -07:00
parent d61cca6905
commit 2dfcc676a1
@@ -219,7 +219,7 @@ export class PaneManager {
}
/** Why separate from getPanes: same crash-path reason as getPaneCount —
* measured 3.2x cheaper at 200 panes than materializing a view per pane. */
* measured 2.5x cheaper at 200 panes than materializing a view per pane. */
getPaneBufferCensus(): TerminalBufferCensus {
return sumTerminalBufferSizes(this.panes.values())
}