replace List
with []
in static series, then covert at end return (it’s faster)
#1259
Milestone
List
with []
in static series, then covert at end return (it’s faster)
#1259
See EMA in v3 for example. Keep in mind, this approach is only faster in certain circumstances, so performance test comparison is required to see where it's better. For example, the simple ADL indicator remains faster with
List<AdlResult>
composition.To avoid copying the underlying array, remember to use:
Instead of:
References and examples:
Stock.Indicators/src/e-k/Ema/Ema.StaticSeries.cs
Line 17 in 8b02491
The text was updated successfully, but these errors were encountered: