SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

AvalonEdit and new Span<T> feature of C# 7.2

Last post 11-22-2017 7:06 PM by netizenk. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-22-2017 7:06 PM

    AvalonEdit and new Span<T> feature of C# 7.2

    Looks like the new Span<T> language feature of C# 7.2 could solve the performance issues of AvalonEdit due to memory allocation associated with manipulating immutable string type... please take a look.

    "This library offers a unified (and allocation-free) representation of memory from a multitude of different sources, such as arrays, stack allocation and native code. With its slicing capabilities, it obviates the need for expensive copying and allocation in many scenarios, such as string manipulation, buffer management, etc, and provides a safe alternative to unsafe code. This is really a game changer, in my opinion. While you may start out using it mostly for performance-intensive scenarios, it is lightweight enough that I think many new idioms will evolve for using it in every day code."

    C# 7.2: Understanding Span



    Filed under: ,
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this ( email address.