ListIconGadget Performance Problem
Posted: Wed Jul 29, 2009 5:31 pm
I have a ListIconGadget with 18 columns. My program adds about 900 items, each about 200 characters long.
It takes over 80 seconds to add these items, in a tight loop, using this statement:
If I remove the statement that adds the item to the ListIconGadget, my program completes its processing in less than one second.
Can anyone suggest ways I can speed this up?
I have tried turning off the redraw of the gadget while filling it, but this has very little effect.
I have read here that ListIconGadgets are slow, but this seems excessive.
I have also seen some code by Sparkie that disables notifications when deleting items.
Is there something similar I could do when adding items?
Is there a better choice to display data in a grid that would give better performance?
Any suggestions would be greatly appreciated!
Thanks,
Eric
It takes over 80 seconds to add these items, in a tight loop, using this statement:
Code: Select all
AddGadgetItem(#ListIcon_FileInfo, -1, ItemString)Can anyone suggest ways I can speed this up?
I have tried turning off the redraw of the gadget while filling it, but this has very little effect.
I have read here that ListIconGadgets are slow, but this seems excessive.
I have also seen some code by Sparkie that disables notifications when deleting items.
Is there something similar I could do when adding items?
Is there a better choice to display data in a grid that would give better performance?
Any suggestions would be greatly appreciated!
Thanks,
Eric