[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Virtual Table Buffering?
|
> The SWT Table is trying to allocate millions of TableItem objects.
This is only true on the Table/Tree on motif, on all other platforms the
TableItems are created only when they're first needed (eg.- on win32 in
Table._getItem(int)).
Calling Table.clear(...) for items that have been scrolled out of the
viewport is fine, but this will not de-allocate the TableItems, it will just
clear their strings in the OS. I'm not sure if this gives significant
benefit or not.
Assuming that your SetData() callback performs quickly, the only Table
sluggishness case that I've heard of is having lots of columns. If you have
lots of colums then you can do a quick experiment by reducing the column
count to four (for instance) and see if this makes a difference or not.
Grant