Files
openide/platform/core-impl
Sergei Tachenov 5a358b8cff IJPL-164422 DocumentImpl: do not create new changedPart if it's a String
This code was initially written to avoid dragging along with
the changed part some huge chunks of text in case this value
is some complicated implementation of CharSequence.
But if it's just a String, turning it into a smart immutable char sequence
has no benefit but may slow down things.

Notably, this change noticeably improves the performance
of LineSet.isSingleLineChange.

(cherry picked from commit 86ef29d3ba08dc7eaf7a51127449afcb92ae6d27)

IJ-CR-157364

GitOrigin-RevId: 3ee0ca15f9bc375a597ec93ba947dc424a8ff652
2025-05-23 08:25:43 +00:00
..
2024-12-30 11:28:24 +00:00