From: "Robert Roessler" <[EMAIL PROTECTED]>
Armel Asselin wrote:
- Scintilla re-set scrollbars after each line insertion (leading to
quadratic update time)
it works well, but quadratic time on 131000... leads my user to kill the
soft and tell me that its bugged ;-(
for sure it's linked to word-wrapping (ContractionState::MakeValid
takes all the time).
any idea? is there a way to block (I mean having the SetScrollbars called
once at end)? or is it already fixed somewhere else?
In case Josiah's suggestion is not what you need here, I [quite a while
ago] added code to Scintilla to handle the "other side" of this: IIRC, I
was having similar performance problems with massive numbers of line
*deletes* during Undo, and arranged to have the scrollbar updates deferred
until I was done.
Look at the use of the SC_MULTISTEPUNDOREDO mod type flag and the
CanDeferToLastStep() predicate function in Editor.cxx.
basically I'd like to have exactly that but during a DO... I enclose my
stuff in a BeginUndoAction/EndUndoAction but I know it's not enough, as it
is not the primary behaviour of these calls, but for sure if I could tell :
"this UndoAction is a programmatic one and don't mess with UI/scrollbars
until EndUndoAction happens", it would be exactly that. It's a kind of
"Freeze/Thaw" as in wxWidgets or Enable/Disable Repaint.
Armel
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest