内存优化

This commit is contained in:
lishuo committed 2024-02-01 16:49:22 +08:00
1 parent c3a9437fc8
commit 9f134a2d64
5 files changed
+88 -126

No files matched your search

-21
View File
@@ -45,26 +45,6 @@ namespace OnlineUserPool.Model
public int CurrentIndex
{
get; set;
//get
//{
//if (_BeginIndex != 0)
//{
// _BeginIndex++;
// if (End)
// {
// return this.Count - 1;
// }
// return this._BeginIndex;
//}
//else
//{
// _BeginIndex = 1;
// return _BeginIndex;
// Random random = new Random();
// _BeginIndex = random.Next(0, this.Count);
// return _BeginIndex;
//}
//}
} = -1;
/// <summary>
@@ -74,7 +54,6 @@ namespace OnlineUserPool.Model
{
get
{
//return this._BeginIndex >= this.Count;
return this.CurrentIndex >= this.Count;
}
}
+3 -1
View File
@@ -68,7 +68,9 @@ namespace OnlineUserPool.Model
_target._Bearing = double.Parse(split[8]);
}
}
split = null;
return _target;
}
}