Out Parameters Large Data Grasshopper

I have a c# component with a large amount of data that is re-writing per time-step. The data update within the component happens in 10-12 miliseconds, because I have pre-allocated all the variables. However, the output to grasshopper triples the time, I think, perhaps, because the out parameters are general lists that are re-created or each time. If I have more than one out parameter this is orders of magnitude slower. Is there any hack / workaround for this.

thank you so much.

I don’t quite understand what you mean, but if you don’t need to recreate the list and can reuse it instead, it should speed things up. You can use IEnumerable<T> instead of List<T>.
Hope this helps.
ex:

private IEnumerable<Point3d> GeneratePoints(int count)
{
    for (int i = 0; i < count; i++)
    {
        yield return new Point3d(i, i, i);
    }
}

private void RunScript(int count, ref object A)
{
    A = GeneratePoints(count); // direct to IEnumerable
}

Try wrapping the data items in the appropriate Grasshopper.Kernel.Types: