Skip to content

perf(reader): preallocate some slices/maps#4274

Merged
fguillot merged 1 commit into
miniflux:mainfrom
jvoisin:preallocatePpp
May 2, 2026
Merged

perf(reader): preallocate some slices/maps#4274
fguillot merged 1 commit into
miniflux:mainfrom
jvoisin:preallocatePpp

Conversation

@jvoisin

@jvoisin jvoisin commented May 1, 2026

Copy link
Copy Markdown
Collaborator

4 to 1, with a meaningful ns/op win on hot feed-parse paths. personNames trades a slightly larger fixed allocation for fewer growths and gets ~29% faster. The micro-benchmarks used to obtain those numbers are, well, micro-benchmarks, and thus I don't think it would make sense to add them to miniflux.

4 to 1, with a meaningful ns/op win on hot feed-parse paths. personNames trades
a slightly larger fixed allocation for fewer growths and gets ~29% faster.
The micro-benchmarks used to obtain those numbers are, well, micro-benchmarks,
and thus I don't think it would make sense to add them to miniflux.
@fguillot fguillot merged commit 55821b9 into miniflux:main May 2, 2026
11 checks passed
@jvoisin jvoisin deleted the preallocatePpp branch May 2, 2026 20:00
dsh2dsh added a commit to dsh2dsh/miniflux that referenced this pull request May 3, 2026
@gudvinr gudvinr mentioned this pull request Jun 13, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants