Changes between Initial Version and Version 1 of Ticket #2290, comment 9


Ignore:
Timestamp:
07/29/13 06:41:52 (11 years ago)
Author:
sknaumov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2290, comment 9

    initial v1  
    1 Yes, on native system difference is not so big: 13,5 seconds with status updates and dash rotation commented out (except notification that search is finished) and 15 seconds otherwise. As to mc's search code - it seems to be too generalized - it scans input buffer char by char to get string, then scans resulted string again to get length, then it calls some generic functions and then it seems that in {{{mc_search_run__regex}}} some functions are called per char. 
     1Yes, on native system difference is not so big: 13,5 seconds with status updates and dash rotation commented out (except notification that search is finished) and 15 seconds otherwise. But I can't see any reason why status bar should be updated so often - information about file being grepped is unreadable anyway. Also it is interesting to measure overhead over ssh. As to mc's search code - it seems to be too generalized - it scans input buffer char by char to get string, then scans resulted string again to get length, then it calls some generic functions and then it seems that in {{{mc_search_run__regex}}} some functions are called per char.