Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2546

Use os.scandir() in the local watcher to improve performances

    XMLWordPrintable

    Details

      Description

      We should investigate the use of os.scandir() instead of Path.iterdir() in LocalWatcher._get_children_info(). It should have better performances. See the PEP 471 for more information.
      This counts with large sync trees.

      I did a small test with thousands of files and os.scandir() is a winner over Path.iterdir() and Path.glob("*"). It would be good to check results when using network-shared folders.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h