internal static T[] AllocateUninitializedArray<T> (int length)
{
- // TODO: Implement
+ // Mono only does explicit zeroning if the array is to big for the nursery, but less than 1 Mb - 4 kb.
+ // If it is bigger than that, we grab memroy directly from the OS which comes pre zeroed.
+ // Experimentation shows that if we just skip the zeroing in this case, we do not save a measurable
+ // amount of time. So we just allocate the normal way here.
+ // Revist if we change LOS implementation.
return new T [length];
}
}