Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #21

Merged
merged 3 commits into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion QQWry/BinaryReaderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace QQWry
{
internal static class BinaryReaderExtensions
public static class BinaryReaderExtensions
{
// Note this MODIFIES THE GIVEN ARRAY then returns a reference to the modified array.
public static byte[] Reverse(this byte[] b)
Expand Down
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.