C# has recently introduced some new features (version <7.0) one of which it is ref returns. I will use this feature in this post to further improve the performance of the Parser created in my previous post.
To refresh the Parser
class looked as follows:
public class Parser
{
public T Parse(ReadOnlySpan input, PropertySetter[] setters) where T : struct