Add default buffer size
This commit is contained in:
parent
5348a23f58
commit
59f2e3466c
@ -27,7 +27,7 @@ public class Program {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (args[1] == "MD5") {
|
if (args[1] == "MD5") {
|
||||||
|
utils.doTheThing(args[1]);
|
||||||
}
|
}
|
||||||
int bufferSize = int.Parse(args[2]);
|
int bufferSize = int.Parse(args[2]);
|
||||||
utils.doTheThing(args[1], bufferSize);
|
utils.doTheThing(args[1], bufferSize);
|
||||||
@ -69,7 +69,7 @@ public class Program {
|
|||||||
|
|
||||||
static void PrintAvailableOptions() {
|
static void PrintAvailableOptions() {
|
||||||
String[] options = {
|
String[] options = {
|
||||||
"checksum - MD5, Murmur and XxHash",
|
"checksum - MD5, Murmur and XxHash - Default buffer size is 4096",
|
||||||
"compareDatabases",
|
"compareDatabases",
|
||||||
"compareChecksums",
|
"compareChecksums",
|
||||||
"saveToSqlite",
|
"saveToSqlite",
|
||||||
|
@ -199,7 +199,7 @@ public class ChksumUtils {
|
|||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doTheThing(string hashalgo, int bufferSize) {
|
public void doTheThing(string hashalgo, int bufferSize = 4096) {
|
||||||
|
|
||||||
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
|
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
|
||||||
IDatabase db = redis.GetDatabase();
|
IDatabase db = redis.GetDatabase();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user