F64116045 opened a new pull request, #12190: URL: https://github.com/apache/ozone/pull/12190
## What changes were proposed in this pull request? When block metadata is missing, `deleteUnreferenced()` scans the chunks directory to find files to delete. For `FILE_PER_BLOCK` containers, the filename is already known (`<localID>.block`). This PR looks up that file directly to avoid repeating the directory scan for each block. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17948 ## How was this patch tested? Local benchmark of `deleteUnreferenced()`: deleting 100 blocks from a directory containing 10,000 unrelated files. Median of five runs: | Version | Time | | --- | --- | | Before | 738.94 ms | | After | 78.51 ms | -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
