Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Excessive memory use
Re: Excessive memory use [message #35683 is a reply to message #35682] |
Mon, 12 March 2012 22:52   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
nixnixnix wrote on Mon, 12 March 2012 17:44 | Hi Novo,
SetVirtualCount doesn't appear to change anything. It still takes a minute or more to load up the data from my data structures into the ArrayCtrl one row at a time using ArrayCtrl::Set(int row, Vector<Value> vals); Is there a quicker way please? I can't see anything in the popup list of functions.
Cheers,
Nick
|
The secret of virtual array is that you do not need to load data into it. 
You need to do two things:
1) Set number of virtual rows by calling SetVirtualCount().
2) Set converters for your columns, which will convert row number into data you want to display.
Take a closer look at
warray.AddRowNumColumn("lemma", 80).SetConvert(*Number2Lexeme);
There is an app VirtualArray in the "reference" assembly.
Regards,
Novo
[Updated on: Mon, 12 March 2012 22:53] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu May 01 01:03:07 CEST 2025
Total time taken to generate the page: 0.01100 seconds
|