Skip to content
Click Here
Github
Click Here
Discord
Click Here
Follow me
Seba's Lab
Seba's Lab

The home of Svelto Entity Component System C# framework and advanced gamedev articles

optimization

Fastest way to set elements in a preallocated array in c#

2019-03-15
By: Sebastiano Mandalà
In: C#, Other
With: 0 Comments

Finally I found the time to play with unmanaged arrays and Memory<T>/Span<T>. In order to investigate possible improvements of the data structures used by Svelto.ECS, I wanted to know what the fastest way to set elements in a preallocated array could be. Using the very powerful BenchmarkDotNet and with theRead More →

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Reddit
  • Email

Speed logo by Joshua Swattridge from the Noun Project

Designed using Magazine Hoot. Powered by WordPress.