Regex ListCtrl threading

I have widget that uses regex to manipulate text or dbf database.

wx.PostEvent and Threads

style=wx.LC_REPORT
> wx.BORDER_NONE
> wx.LC_EDIT_LABELS
> wx.LC_SORT_ASCENDING)

I take 35 seconds to thread 1400 rows and 6 mins to parse 3000 rows!

So I can research, what kind of anomaly am I facing?

George McCown wrote:

I have widget that uses regex to manipulate text or dbf database.
wx.PostEvent and Threads
style=wx.LC_REPORT
> wx.BORDER_NONE
> wx.LC_EDIT_LABELS
> wx.LC_SORT_ASCENDING)
I take 35 seconds to thread 1400 rows and 6 mins to parse 3000 rows!
So I can research, what kind of anomaly am I facing?

We will need much more details to be able to understand your problem, or even to understand what it is you are asking. But in general if your problem is that it is taking too long to pre-load all the rows into the listctrl then you may want to take a look at a virtual listctrl using the wx.LC_VIRTUAL style flag. That way you will only need to provide the values to be displayed on-demand as they are needed, and if desired, you can continue the calculations of the remaining values in the background using a thread.

···

--
Robin Dunn
Software Craftsman