Skip to content
  • deuce's avatar
    Optimization for fexist() and fexistcase() when neither * nor ? is present · 2dc95279
    deuce authored
    on the passed path...
    For fexist() simply return TRUE if access()!=-1 && !isdir()
    For fexistcase() *try* the access()/isdir() method first, then do the full
    search.  Should make a reasonable difference.  Profileing suggests that
    iniFileName() is quite slow due to the fexistcase() calls.  As the general
    case is that the passed path is correct, this should speed up most calls
    to fexist*().
    2dc95279