vezel-dev / cathode

A terminal-centric replacement for the .NET console APIs.
https://docs.vezel.dev/cathode
BSD Zero Clause License
91 stars 7 forks source link

Get rid of remaining avoidable allocations in `ControlSequences` #104

Closed alexrp closed 1 year ago

alexrp commented 1 year ago

A number of methods still allocate lambdas, e.g.:

https://github.com/vezel-dev/cathode/blob/f865659a52ea3762fe01fa1bc37a8551f6faf02c/src/core/Text/Control/ControlSequences.cs#L130-L143