Optimize updates of status bar during search.
commit8aa3c77ecfc0125653329efadb3229312d6d84ba
authorSergey Naumov <sknaumov@gmail.com>
Mon, 2 Dec 2013 06:02:28 +0000 (2 10:02 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Tue, 14 Jan 2014 10:13:38 +0000 (14 14:13 +0400)
treebbac2d60bdc1494a207342d7cc90698e2873d25c
parent8ae1de5b027509e0d7a710c7883231a036202814
Optimize updates of status bar during search.

Optimization is based on examining file size and time of the last status
update. This is synchronous and is based on assumption that relatively
small files are quickly processed even on slow hardware so if refresh
timeout expires during their processing, the delay couldn't be noticed
by human. Therefore only rather big files have to be reported
unconditionally, and others - only if there is a match in this file or
if timeout expires.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/find.c