Skip to content

perf(core): avoid splitting paths when checking file names - #8878

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-file-path-segment
Nov 16, 2026
Merged

chenjiahan merged 1 commit into
mainfrom
chenjiahan/perf-file-path-segment

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Motivation

Avoid splitting entire paths just to identify changed files in build logs.

Changes

Read the last path segment with lastIndexOf() and slice().

Local helper benchmark (mixed file and directory paths; Node 24.19.0, Apple M5 Max; medians from 3 processes × 11 warmed A/B rounds).

Before After Speedup
120.8 ns/call 24.4 ns/call 394.1% faster

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T11:33:24.236410Z f7f1b97 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit 58396cb into main Nov 16, 2026
8 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/perf-file-path-segment branch November 16, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant