Scintilla: speed up converting byte offsets to character offsets
commit6d0062201ee2701acceed9af0227c61e9777037d
authorColomban Wendling <ban@herbesfolles.org>
Tue, 21 Feb 2017 21:18:34 +0000 (21 22:18 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 27 Feb 2017 13:16:20 +0000 (27 14:16 +0100)
tree71f4e2aee7e6ed4afc3be9c6abb3792b3d4d0b66
parentb07c8b01c08e0f85b0122211129c952b2f22aecb
Scintilla: speed up converting byte offsets to character offsets

Use a per-line cache to avoid re-computing the offset from the start of
the buffer each time. This dramatically speeds up multiple replacements
on large files.

X-Scintilla-Bug-ID: https://sourceforge.net/p/scintilla/bugs/1910/
scintilla/gtk/ScintillaGTKAccessible.cxx
scintilla/gtk/ScintillaGTKAccessible.h