A micro-optimisation for walkdir()

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: A micro-optimisation for walkdir()
Date: 2020-09-02 05:18:38
Message-ID: CA+hUKG+FzxupGGN4GpUdbzZN+tn6FQPHo8w0Q+APH5Wz8RG+ww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello hackers,

You don't need to call stat() just to find out if a dirent is a file
or directory, most of the time. Please see attached.

Attachment Content-Type Size
0001-Skip-unnecessary-stat-calls-in-walkdir.patch text/x-patch 2.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2020-09-02 05:24:47 Re: PATCH: logical_work_mem and logical streaming of large in-progress transactions
Previous Message vignesh C 2020-09-02 05:05:23 describe-config issue