Skip to content
Snippets Groups Projects
  • YoBoY's avatar
    22952965
    Limiting use of readdir in the idx_indexLengths function (v2). · 22952965
    YoBoY authored
    Each searches on the wiki use this function. Scanning the index directory eachtime is time consuming with a constant series of disk access.
    Switching a normal search to use file_exists 1 or more times, and not readdir all the directory.
    Switching a wildcard search to use a lengths.idx file containing all the word lengths used in the wiki, file generated if a new configuration parameter $conf[readdircache] is not 0 and fixed to a time in second. Creation of a new function idx_listIndexLengths to do this part.
    22952965
    History
    Limiting use of readdir in the idx_indexLengths function (v2).
    YoBoY authored
    Each searches on the wiki use this function. Scanning the index directory eachtime is time consuming with a constant series of disk access.
    Switching a normal search to use file_exists 1 or more times, and not readdir all the directory.
    Switching a wildcard search to use a lengths.idx file containing all the word lengths used in the wiki, file generated if a new configuration parameter $conf[readdircache] is not 0 and fixed to a time in second. Creation of a new function idx_listIndexLengths to do this part.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.