Skip to content

refactor(format): hoist GitHub escape replacers to package vars#4

Merged
nozaq merged 2 commits into
mainfrom
reduce-alloc
Jul 12, 2026
Merged

refactor(format): hoist GitHub escape replacers to package vars#4
nozaq merged 2 commits into
mainfrom
reduce-alloc

Conversation

@nozaq

@nozaq nozaq commented Jul 12, 2026

Copy link
Copy Markdown
Member

Avoid allocating a strings.NewReplacer on every WriteIssues call;
strings.Replacer is documented as safe for concurrent use.

nozaq and others added 2 commits July 12, 2026 01:02
Avoid allocating a strings.NewReplacer on every WriteIssues call;
strings.Replacer is documented as safe for concurrent use.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Explain why append(segs, seg) can safely share a backing array
across sibling walk calls, and note that copying segs is required
before parallelizing the traversal or having Node retain it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@nozaq nozaq merged commit f4fd940 into main Jul 12, 2026
8 checks passed
@nozaq nozaq deleted the reduce-alloc branch July 12, 2026 01:07
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