kinotify: Optimize the filterWatch process

Review Request #110317 - Created May 5, 2013 and submitted

Information
Vishesh Handa
nepomuk-core
Reviewers
nepomuk
afiestas, sbird
    kinotify: Optimize the filterWatch process
    
    The FilterWatch is used to to not add watches to everything.
    Specifically we do not add watches to names in the exclude list. Also
    we only monitor for creation and modification events in the include
    folders.
    
    FileIndexerConfig::shouldFileBeIndexed and shouldFolderBeIndexed have a
    lot of duplicate code internally. They both use the expensive RegExp
    cache.
    
    It's better if we only use the RegExp cache once.
It's faster
Simeon Bird
Commit Hook
Vishesh Handa
Review request changed

Status: Closed (submitted)

Loading...