TextSearch becomes unresponsive during search
|Reported by:||KapiX||Owned by:||phoudoin|
As in title. Cancelling a big search is almost impossible. Neither keyboard nor mouse works.
My guess is that message queue gets filled up with MSG_REPORT_FILE_NAME  and can't handle keyboard/mouse events until it's empty.
I would like this ticket to be a brainstorming place how to remedy that.
1) Update text view less frequently, for example not for each file, but for each directory.
2) Create a separate thread to respond to specific key. I don't like that though, since it replicates GUI's responsibilities.
3) Batch updates.
4) Implement some kind of throttling mechanism, that would stop sending/discard MSG_REPORT_FILE_NAME messages after a certain limit is reached.
5) Use BMessageRunner to send MSG_REPORT_FILE_NAME at regular intervals that the app_server would be able to handle in reasonable time.
I think 5) is the best one and it should be easy to implement.
Change History (6)
by , 3 years ago