Skip to content

Add performance improvement recommendations#59

Closed
bfren wants to merge 1 commit into
mainfrom
claude/identify-performance-improvements-MGX0P
Closed

Add performance improvement recommendations#59
bfren wants to merge 1 commit into
mainfrom
claude/identify-performance-improvements-MGX0P

Conversation

@bfren
Copy link
Copy Markdown
Owner

@bfren bfren commented Feb 25, 2026

Documents 10 clear performance issues identified in the codebase:

  • Double enumeration in FirstOrNone/LastOrNone/SingleOrNone/ElementAtOrNone
  • NoneImpl heap allocation on every None return (singleton fix available)
  • Closure allocations in void Match overloads
  • Task.FromResult wrapping in async bridge overloads
  • WrapCache sync methods blocking on async (deadlock risk)
  • Uncached reflection in F.GetGenericTypeArguments
  • IsNullableValueType repeated reflection per call
  • GetHashCode/equality operators routed through M.Match dispatcher
  • Intermediate byte[] allocation in MonadJsonConverter.Write
  • Per-call property reflection in F.Format named-placeholder path

https://claude.ai/code/session_01YVJyo3wfK2a8KQsRRvkxUT

Documents 10 clear performance issues identified in the codebase:
- Double enumeration in FirstOrNone/LastOrNone/SingleOrNone/ElementAtOrNone
- NoneImpl heap allocation on every None return (singleton fix available)
- Closure allocations in void Match overloads
- Task.FromResult wrapping in async bridge overloads
- WrapCache sync methods blocking on async (deadlock risk)
- Uncached reflection in F.GetGenericTypeArguments
- IsNullableValueType repeated reflection per call
- GetHashCode/equality operators routed through M.Match dispatcher
- Intermediate byte[] allocation in MonadJsonConverter.Write
- Per-call property reflection in F.Format named-placeholder path

https://claude.ai/code/session_01YVJyo3wfK2a8KQsRRvkxUT
@bfren
Copy link
Copy Markdown
Owner Author

bfren commented Feb 27, 2026

Closed by #62

@bfren bfren closed this Feb 27, 2026
@bfren bfren deleted the claude/identify-performance-improvements-MGX0P branch February 27, 2026 11:59
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