* Replaced most CSJ2K Array.Copy() calls with the faster Buffer.BlockCopy() for a ~17% speedup (LIBOMV-861)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3411 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2010-08-05 19:18:24 +00:00
parent 77e55fa488
commit 03901afe1e
19 changed files with 47 additions and 47 deletions

View File

@@ -334,13 +334,13 @@ ploop: ;
if (termp != null)
{
isTermPass = new bool[n];
Array.Copy(termp, 0, isTermPass, 0, n);
Buffer.BlockCopy(termp, 0, isTermPass, 0, n);
}
else
{
isTermPass = null;
}
Array.Copy(rates, 0, truncRates, 0, n);
Buffer.BlockCopy(rates, 0, truncRates, 0, n);
for (k = first_pnt, p = - 1, i = 0; k < n; k++)
{
if (rates[k] > 0)