David
2014-02-10 17:11:51 UTC
Hi all,
In my app, some people edit very, very large documents. Over the last
couple of years, I've developed a reasonable RTF editor based on
wxRichTextCtrl. (I use wxPython, but Robin Dunn has suggested I bring this
issue over here, as he feels it is wxWidgets-related rather than
wxPython-related.)
I have a sample document from a user, 122 pages long, just under 40,000
words, just over 225,000 characters, and everything works well enough in
wxPython 2.8.12.0. Editing is quite responsive throughout the document.
(This is while using the wxRichTextCtrl Demo program, so I *know* it's not
related to my code.)
But with wxPython 2.9.4.0 and 3.0.0.0, the wxRichTextCtrl has become
basically unusable for large documents. When editing near the beginning of
a large document, processing each key stroke can take a painful 1 to 2+
seconds. (Still in the wxPython wxRichTextCtrl Demo.)
I'm seeing this problem on both Windows (2.9.4.0 and 3.0.0.0) and OS X
(2.9.4.0, haven't actually tested 3.0.0.0.) The slowdown seems to fall
between the end of the EVT_CHAR event and the beginning of the EVT_KEY_UP
event. The further into the document you are, the less a problem it is,
and the end of the document is fully editable.
My current theory is that something changed in wxWidgets between 2.8.12.0
and 2.9.4.0 that is causing this slowdown.
So ... can anyone confirm this problems with wxWidgets, independent of
wxPython? Is a bug report warranted?
Any suggestions for a quick fix or work-around?
Thanks,
David
http://www.transana.org
In my app, some people edit very, very large documents. Over the last
couple of years, I've developed a reasonable RTF editor based on
wxRichTextCtrl. (I use wxPython, but Robin Dunn has suggested I bring this
issue over here, as he feels it is wxWidgets-related rather than
wxPython-related.)
I have a sample document from a user, 122 pages long, just under 40,000
words, just over 225,000 characters, and everything works well enough in
wxPython 2.8.12.0. Editing is quite responsive throughout the document.
(This is while using the wxRichTextCtrl Demo program, so I *know* it's not
related to my code.)
But with wxPython 2.9.4.0 and 3.0.0.0, the wxRichTextCtrl has become
basically unusable for large documents. When editing near the beginning of
a large document, processing each key stroke can take a painful 1 to 2+
seconds. (Still in the wxPython wxRichTextCtrl Demo.)
I'm seeing this problem on both Windows (2.9.4.0 and 3.0.0.0) and OS X
(2.9.4.0, haven't actually tested 3.0.0.0.) The slowdown seems to fall
between the end of the EVT_CHAR event and the beginning of the EVT_KEY_UP
event. The further into the document you are, the less a problem it is,
and the end of the document is fully editable.
My current theory is that something changed in wxWidgets between 2.8.12.0
and 2.9.4.0 that is causing this slowdown.
So ... can anyone confirm this problems with wxWidgets, independent of
wxPython? Is a bug report warranted?
Any suggestions for a quick fix or work-around?
Thanks,
David
http://www.transana.org
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users