|
|
Re: [swt.widgets.Text] No live update and very slow on Mac OS X [message #1648656 is a reply to message #1600493] |
Wed, 04 March 2015 01:36 |
sam detweiler Messages: 22 Registered: August 2012 |
Junior Member |
|
|
I am debugging a similar performance problem, on windows.
the Text window has hundreds of thousands of 'lines'
(think a hour long build output log)..
as the number of lines increases the eclispe ui gets slower and slower and slower,
til it appears hung.
the buffers from the job log are queued up in a background thread, and the UI thread gets run every 10 seconds to push the buffers into the text control..
every update cycle does
(control is enabled, it has auto refresh on I expect)
append() (1 or more times)
append()
append() (one buffer is 37meg)
then
setVisible(true);
setTopIndex(getLineCount()-1);
getParent().layout();
if I comment out the setTopIndex/getTopIndex, no change..
so my theory is that the append is doing a lot of extra stuff under the covers.
is there something I can do to turn off updates while the data gets loaded in?
the control says it holds 2gig. (getTextLimit), and I am nowhere near close (<100meg).
Maybe setRedraw(false)?
the control is created thru FormToolkit.createText().
[Updated on: Wed, 04 March 2015 12:21] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02309 seconds