Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
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



Smile The secret of virtual array is that you do not need to load data into it. Smile

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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Customising GridCtrl Search
Next Topic: GridCtrl: how to set label of an Option
Goto Forum:
  


Current Time: Fri Apr 19 07:53:51 CEST 2024

Total time taken to generate the page: 0.03320 seconds