cvss: performance pass - #1985
Open
hdonnay wants to merge 3 commits into
Open
Conversation
hdonnay
force-pushed
the
hack/perf/cvss
branch
from
August 14, 2026 18:00
6220626 to
4b7c9ff
Compare
This restructures the benchmarks and adds an `encoding.TextMarshaler` benchmark. Signed-off-by: Hank Donnay <hdonnay@redhat.com> Change-Id: I9f83a521ac153eb88af8185ccde0562f6a6a6964
This is automated modernization rewrites. Signed-off-by: Hank Donnay <hdonnay@redhat.com> Change-Id: I949ea3ebad46f54e26b19188064994556a6a6964
This implements the new interface, redefines `encoding.TextMarshaler` using it, and adds benchmarks. The goal is to have `AppendText` do no unavoidable allocations, meaning that if the input slice has sufficient capacity there are no additional heap allocations to populate it. Signed-off-by: Hank Donnay <hdonnay@redhat.com> Change-Id: I50157434eb16073a14edb2b4bec253966a6a6964
hdonnay
force-pushed
the
hack/perf/cvss
branch
from
August 14, 2026 21:46
4b7c9ff to
670d3f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes add benchmarks, then implements
encoding.TextAppenderin search of minimizing allocations.Results from my machine