Main Site Documentation

Compare & Contains within GHI.Utilities.Arrays


#1

Methods [em]Compare[/em] and [em]Contains[/em] within [em]GHI.Utilities.Arrays[/em] class are implemented in managed code.

For example, [em]Compare[/em] method, apart from numerous checks, is just a simple for cycle:

for (int index = 0; index < num; ++index)
{
if ((int) array1[array1Offset + index] != (int) array2[array2Offset + index])
  return false;
}

Can GHI team implement those two methods in unmanaged code like all the other methods are done within this class? It would increase speed drastically.


#2

@ iamin - It is possible to do. You can add it to the task tracker.


#3

Seems like something that ought to be submitted to the PK?