mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
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