perf(files): move directory-entry names instead of copying them #758

Manually merged
github merged 1 commit from gh-pr/758/head into gh-pr/758/base 2026-11-26 09:31:48 +00:00
Owner

@⁠crevant on GitHub · 2026-09-21 19:28 UTC · original
crevant:perf/move-directory-entry-names → main · +2 −7 · 1 files · 1 commits · merged 2026-09-22 08:26 UTC

Avoid one string copy/allocation per directory entry in Common::File::GetDirEntries. The temporary platform entry list is not used after conversion, so its names can be moved safely.

**@⁠crevant** on GitHub · 2026-09-21 19:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/758) `crevant:perf/move-directory-entry-names` → `main` · +2 −7 · 1 files · 1 commits · merged 2026-09-22 08:26 UTC Avoid one string copy/allocation per directory entry in `Common::File::GetDirEntries`. The temporary platform entry list is not used after conversion, so its names can be moved safely.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:31:47 +00:00
github manually merged commit 1eaf6299e4 into gh-pr/758/base 2026-11-26 09:31:48 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-21 19:30 UTC · original · edited 2026-09-21 19:32 UTC

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 999a5d52-d031-4576-b280-f97b5e730621

📥 Commits

Reviewing files that changed from the base of the PR and between ba55ba5dc5 and 1eaf6299e4.

📒 Files selected for processing (1)
  • src/common/file.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

File::GetDirEntries now constructs File::DirEntry objects directly in the result vector. The change moves each directory entry name and preserves its file-type flag.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Refactor

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No pull request description was provided. The changeset is related to moving directory-entry names, but the description check cannot confirm author-provided context. Add a brief description that states that GetDirEntries now moves directory-entry names to reduce copying.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: moving directory-entry names instead of copying them in file handling code.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-21 19:30 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/758#issuecomment-5766293513) · edited 2026-09-21 19:32 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/758#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/758#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a> **Understand this PR’s impact** Explore downstream dependencies and potential security impact with Blast Radius. [View blast radius →](<https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/758?view=blast-radius>) <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `999a5d52-d031-4576-b280-f97b5e730621` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between ba55ba5dc541db1920c60f3e2f8dd0c6420dca8e and 1eaf6299e4d8f9e57ea28fa614c330fa7eef6107. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `src/common/file.cpp` </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough `File::GetDirEntries` now constructs `File::DirEntry` objects directly in the result vector. The change moves each directory entry name and preserves its file-type flag. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"1eaf6299e4d8f9e57ea28fa614c330fa7eef6107" --> **Change:** Refactor <!-- change_assessment_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 3 | ❌ 2</summary> ### ❌ Failed checks (1 warning, 1 inconclusive) | Check name | Status | Explanation | Resolution | | :----------------: | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | | Description check | ❓ Inconclusive | No pull request description was provided. The changeset is related to moving directory-entry names, but the description check cannot confirm author-provided context. | Add a brief description that states that GetDirEntries now moves directory-entry names to reduce copying. | <details> <summary>✅ Passed checks (3 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------------- | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Title check | ✅ Passed | The title clearly and concisely describes the main change: moving directory-entry names instead of copying them in file handling code. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.