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 » GridCtrl performance
Re: GridCtrl performance [message #39744 is a reply to message #39743] Mon, 22 April 2013 22:50 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

GridCtrl uses Vector<Vector<Item>> internally. So inserting is as fast as Vector implementation is. You should observe dramatic speed improvement if you compile your app in release mode (but I assume you did Smile ). If you insert many rows at once you can put insertion part between grid.Ready(false) and grid.Ready(true).
You can also add 300.000 empty rows to the grid in the beginning and simply clear and set particular cells. This way you would avoid removing and inserting rows over and over again.
ArrayCtrl and virtual rows should solve your problem. It seems like you did something wrong, but without the real code it's hard to tell.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Minor bug & patch] ArrayCtrl and HeaderCtrl should use native resizing icons on X11.
Next Topic: pagination base ArrayCtrl
Goto Forum:
  


Current Time: Sun Jul 06 06:00:16 CEST 2025

Total time taken to generate the page: 0.03560 seconds