Add d_type to our Windows dirent emulation.
Thomas Munro <tmunro@postgresql.org>
Add d_type to our Windows dirent emulation. This allows us to skip some stat calls, by extending commit 861c6e7c to cover Windows systems. Author: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com> Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Magnus Hagander <magnus@hagander.net> Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/CA%2BhUKG%2BFzxupGGN4GpUdbzZN%2Btn6FQPHo8w0Q%2BAPH5Wz8RG%2Bww%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port/win32_msvc/dirent.h | modified | +11 −0 |
| src/port/dirent.c | modified | +10 −0 |
Discussion
- A micro-optimisation for walkdir() 29 messages · 2020-09-02 → 2020-09-14