Skip to content

perf: emit nil for empty Slice literals#409

Merged
ivov merged 1 commit into
mainfrom
emit-nil-for-empty-slices
May 14, 2026
Merged

perf: emit nil for empty Slice literals#409
ivov merged 1 commit into
mainfrom
emit-nil-for-empty-slices

Conversation

@ivov
Copy link
Copy Markdown
Owner

@ivov ivov commented May 14, 2026

Empty Slice<T> literals now emit as typed nil, and empty Slice<T> fields in struct literals are dropped so Go's nil zero value applies. One less allocation per call site.

@ivov ivov merged commit 1155da5 into main May 14, 2026
11 checks passed
@ivov ivov mentioned this pull request May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Released in lisette-v0.2.5

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