Changes between Initial Version and Version 4 of Ticket #29689


Ignore:
Timestamp:
Aug 20, 2018, 2:58:29 PM (6 years ago)
Author:
Tim Graham
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29689

    • Property Owner changed from nobody to Federico Bond
    • Property Has patch set
    • Property Triage Stage UnreviewedReady for checkin
    • Property Summary Replace os.listdir with os.scandir in FileSystemStorage.listdirImprove performance of FileSystemStorage.listdir() and FilePathField with os.scandir()
  • Ticket #29689 – Description

    initial v4  
    1 Now that the minimum supported version is Python 3.5, we can replace os.listdir with os.scandir in `FileSystemStorage.listdir` for improved performance.
     1Now that the minimum supported version is Python 3.5, we can replace `os.listdir()` with `os.scandir()` in `FileSystemStorage.listdir()` and `FilePathField.__init__()` to eliminate extra syscalls within the loops for improved performance.
Back to Top