static void PerfTest1(int count, int length) { for (int i = 0; i < count; i++) { InternalObjectId[] internalIds = new InternalObjectId[length]; for (int k = 0; k < length; k++) { internalIds[k] = new InternalObjectId(10, k + 1); } ObjectId[] publicIds = new ObjectId[length]; for (int k = 0; k < length; k++) { publicIds[k] = new ObjectId(internalIds[k]); } } }
internal ObjectId(InternalObjectId id) { m_TypeId = id.TypeId; m_InstanceId = id.InstanceId; }