Skip to content

refactor: remove dead code, fix stringly-typed cache, optimize hot paths#1

Merged
nahime0 merged 1 commit intoillegalstudio:mainfrom
amargiovanni:refactor/cleanup-dead-code-and-optimizations
Mar 7, 2026
Merged

refactor: remove dead code, fix stringly-typed cache, optimize hot paths#1
nahime0 merged 1 commit intoillegalstudio:mainfrom
amargiovanni:refactor/cleanup-dead-code-and-optimizations

Conversation

@amargiovanni
Copy link
Copy Markdown
Contributor

  • Remove unused functions: statusDot, statusLabel, renderActivity, max
  • Remove unused variables: colorDanger, statusColors map
  • Replace stringly-typed [2]string worktree cache with proper wtInfo struct
  • Deduplicate metadata extraction (CWD, Version, GitBranch) in ParseJSONL
  • Cache lowercased search query in refreshVisible to avoid per-session ToLower
  • Use targeted struct unmarshal for file_path extraction instead of map[string]any

- Remove unused functions: statusDot, statusLabel, renderActivity, max
- Remove unused variables: colorDanger, statusColors map
- Replace stringly-typed [2]string worktree cache with proper wtInfo struct
- Deduplicate metadata extraction (CWD, Version, GitBranch) in ParseJSONL
- Cache lowercased search query in refreshVisible to avoid per-session ToLower
- Use targeted struct unmarshal for file_path extraction instead of map[string]any
@nahime0 nahime0 merged commit 946e3d0 into illegalstudio:main Mar 7, 2026
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.

2 participants