]> git.lyx.org Git - features.git/commit
Paragraph::write: buffer normal characters into a docstring, in order to reduce the...
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 23 Oct 2009 16:48:55 +0000 (16:48 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 23 Oct 2009 16:48:55 +0000 (16:48 +0000)
commitb265203a8401085b26f7a1fa5f8e04997bee1972
tree4e8011988d5da0108f2778fa7d010641469300c6
parent1535e4b825fe01e8a7aaba708f3c321edc132a22
Paragraph::write: buffer normal characters into a docstring, in order to reduce the number of calls to to_qstr().

THis leads to a big speedup of the buffer-write function (>60%). The goal is to make autosave less noticeable.

This patch should be safe as long as transforming a docstring to utf8 is equivalent to transforming the characters one by one.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31695 a592a061-630c-0410-9148-cb99ea01b6c8
src/Paragraph.cpp