Skip to content

Commit

Permalink
优化性能
Browse files Browse the repository at this point in the history
  • Loading branch information
JadynWong committed Jun 1, 2020
1 parent 65cd135 commit 1db2bbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QQWryTest/QQWryIpSearchTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace QQWry.Test
{
public class QQWryIpSearchTest
{
protected QQWryIpSearchMode2 GetInstance()
protected QQWryIpSearch GetInstance()
{
var dbPath = Path.Combine(AppContext.BaseDirectory, "qqwry.dat");

Expand All @@ -22,7 +22,7 @@ protected QQWryIpSearchMode2 GetInstance()
QQWryUrl = "https://github.com/JadynWong/IP_qqwry/raw/test/qqwry.rar",
CopyWriteUrl = "https://github.com/JadynWong/IP_qqwry/raw/test/copywrite.rar"
};
QQWryIpSearchMode2 ipSearch = new QQWryIpSearchMode2(option);
QQWryIpSearch ipSearch = new QQWryIpSearch(option);
return ipSearch;
}

Expand Down Expand Up @@ -169,7 +169,7 @@ public void MultiThreadingSafeTest()
{
var ipSearch = GetInstance();

var maxTask = 100000;
var maxTask = 30000;

var p = Parallel.For(0, maxTask, new ParallelOptions()
{
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1db2bbd

Please sign in to comment.