Changes between Initial Version and Version 4 of Ticket #29689
- Timestamp:
- Aug 20, 2018, 2:58:29 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29689
- Property Owner changed from to
- Property Has patch set
- Property Triage Stage Unreviewed → Ready for checkin
- Property Summary Replace os.listdir with os.scandir in FileSystemStorage.listdir → Improve 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.1 Now 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.