Files
outline/shared/editor/lib
Tom MoorandClaude Fable 5 7764c95e80 perf: Skip revision diff when too expensive to compute (#13432)
* fix: Skip revision diff when too expensive to compute

Recreating steps from a JSON patch copies and validates the full document
once per operation, so a structure collapse on a very large document could
block the worker event loop for minutes. Skip the changeset when the
product of operation count and document size exceeds a bound, and send
notification emails without the inline preview in that case.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* perf: Apply complexity guard to every patch computation

Centralize patch creation and the maxComplexity check in recalculateOps
so the recomputed patch in addSetNodeMarkup is bounded as well.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 17:56:16 -04:00
..
2026-01-15 20:27:00 -05:00