linkdotnet / linkdotnet/StringBuilder

stackalloc-based version

Open
#264 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
112
Forks
11
Avg merge
2m
Merged PRs (30d)
3

Description

I wish you would add a ‍`stackalloc`-based version in this library to increase performance.
Of course, not all existing features will be supported in the proposed version, but the main features like Append, Format, etc. can be implemented (which are commonly used).
You may find this [link ](https://andrewlock.net/a-deep-dive-on-stringbuilder-part-6-vaulestringbuilder-a-stack-based-string-builder/)useful.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked deep dive on ValueStringBuilder and compare its stackalloc approach with this library's existing API. Define the supported Append and Format behavior, then establish performance and allocation measurements to verify that the proposed version meets its goal.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.