Skip to content

fix(macos): drop O(n) hashValue from tool-output cache key#25125

Merged
siddseethepalli merged 1 commit into
mainfrom
swarm/7c4a/task-25092
Apr 13, 2026
Merged

fix(macos): drop O(n) hashValue from tool-output cache key#25125
siddseethepalli merged 1 commit into
mainfrom
swarm/7c4a/task-25092

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Apr 13, 2026

Addresses Codex feedback on #25092: result.hashValue is O(n) and runs in the SwiftUI render path on every cache lookup, reintroducing the O(n) per-render cost that #25048 eliminated. Removes hashValue from the fingerprint — the remaining count|prefix(16)|suffix(16) terms are O(1) and still catch the in-place mutation case that #25092 was fixing.


Open with Devin

@siddseethepalli siddseethepalli self-assigned this Apr 13, 2026
@siddseethepalli siddseethepalli merged commit 814e142 into main Apr 13, 2026
6 checks passed
@siddseethepalli siddseethepalli deleted the swarm/7c4a/task-25092 branch April 13, 2026 02:30
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5260d0ac3

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

View 1 additional finding in Devin Review.

Open in Devin Review

@siddseethepalli
Copy link
Copy Markdown
Contributor Author

Addressed in #25140

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