On 2013-04-10 19:37, Ice Man wrote:
> I have a ListViewer that can potentially have 100k elements at runtime.
> There are some performance issues when the data set gets this large, and
> while doing some reading I noticed that SWT Tables and Trees can be
> virtualized but there is no mention of Lists.
> Is it possible to use the SWT.VIRTUAL style with a List?
Have you consulted the documentation of org.eclipse.swt.widgets.List
IMO the spec is clear, that SWT.VIRTUAL is not supported. In addition to
that we find (which is non-conclusive alone, but strengthens my previous
assertion) the following specified for class SWT:
* Style constant to allow virtual data (value is 1<<28).
* <p><b>Used By:</b><ul>
* @since 3.0
public static final int VIRTUAL = 1 << 28;
I recommend to replace your List by an SWT TableViewer with SWT.VIRTUAL
flag. It is quite easy to make Table look like a list by simply using a
one-column table without column headers.