mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
9eaeb33c88
storagePosixInfoList() processed each directory in a single memory context. If the directory contained hundreds of thousands of files processing became very slow due to the number of allocations. Instead, reset the memory context every thousand files to minimize the number of allocations active at once, improving both speed and memory consumption. Reported by Jens Wilke.