in reply to Re^3: 'unlink' seems to not work correctly ...
in thread 'unlink' seems to not work correctly ...

performance penalty?
  • Comment on Re^4: 'unlink' seems to not work correctly ...

Replies are listed 'Best First'.
Re^5: 'unlink' seems to not work correctly ...
by merlyn (Sage) on Dec 05, 2009 at 13:15 UTC
    Yes, no_chdir means that find needs to keep readdirring and stating longer and longer paths, repeatedly traversing the parent directories. Real find, like the default File::Find, uses chdir to ensure that the readdir and stats traverse the minimal number of inodes.

    -- Randal L. Schwartz, Perl hacker

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

      Oh wow, is there a memoize option?