Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
hhblaze committed Sep 4, 2017
1 parent 3deb660 commit fab6cc2
Show file tree
Hide file tree
Showing 27 changed files with 226 additions and 36 deletions.
29 changes: 15 additions & 14 deletions Process1/Process1/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ async void t001_TestIntensiveParallel()
//});


sw = new System.Diagnostics.Stopwatch();
sw.Start();
for (int j = 0; j < 1000; j++)
{
var tor = await sm.RemoteRequestAsync(new byte[50000], null);
//sw = new System.Diagnostics.Stopwatch();
//sw.Start();
//for (int j = 0; j < 1000; j++)
//{
// var tor = await sm.RemoteRequestAsync(new byte[50000], null);

}
sw.Stop();
Console.WriteLine("ELAPS: " + sw.ElapsedMilliseconds);
//MessageBox.Show("ELAPS: " + sw.ElapsedMilliseconds);
return;
//}
//sw.Stop();
//Console.WriteLine("ELAPS: " + sw.ElapsedMilliseconds);
////MessageBox.Show("ELAPS: " + sw.ElapsedMilliseconds);
//return;


//sw = new System.Diagnostics.Stopwatch();
Expand All @@ -134,7 +134,7 @@ async void t001_TestIntensiveParallel()
sw.Start();
for (int j = 0; j < 1000; j++)
{
var tor = sm.RemoteRequest(new byte[50000], null);
var tor = sm.RemoteRequest(new byte[512], null);

}
sw.Stop();
Expand Down Expand Up @@ -167,8 +167,9 @@ async void t001_TestIntensiveParallel()
{
for (int j = 0; j < 1000; j++)
{
//var tor = sm.RemoteRequest(new byte[50]);
var tor = sm.RemoteRequest(new byte[50],null);
var tor = sm.RemoteRequest(new byte[512]);
//var tor = sm.RemoteRequest(new byte[50],(par) => {
//});
//Console.WriteLine(DateTime.UtcNow.ToString("HH:mm:ss.ms") + "> masterRes " +tor.Item1 + " " + tor.Item2.Length);
}
};
Expand All @@ -182,7 +183,7 @@ async void t001_TestIntensiveParallel()

sw = new System.Diagnostics.Stopwatch();
sw.Start();
Task.WaitAll(tasks.ToArray());
await Task.WhenAll(tasks.ToArray());
sw.Stop();
Console.WriteLine("ELAPS: " + sw.ElapsedMilliseconds);
}
Expand Down
Binary file modified Process1/Process1/bin/Debug/Process1.exe
Binary file not shown.
Binary file modified Process1/Process1/bin/Debug/Process1.pdb
Binary file not shown.
Binary file modified Process1/Process1/bin/Debug/SharmIpc.dll
Binary file not shown.
Binary file modified Process1/Process1/bin/Debug/SharmIpc.pdb
Binary file not shown.
Binary file modified Process1/Process1/bin/Release/Process1.exe
Binary file not shown.
Binary file modified Process1/Process1/bin/Release/Process1.pdb
Binary file not shown.
Binary file modified Process1/Process1/bin/Release/SharmIpc.dll
Binary file not shown.
Binary file modified Process1/Process1/bin/Release/SharmIpc.pdb
Binary file not shown.
12 changes: 6 additions & 6 deletions Process1/SharmIpc/ReaderWriterHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ unsafe void StartSendProcedure()

}

Task.Run(() =>
{
//Task.Run(() =>
//{
//here we got smth toSend
while (true)
{
Expand Down Expand Up @@ -400,7 +400,7 @@ unsafe void StartSendProcedure()
}
}//eo while

});
//});

}//eof

Expand All @@ -421,8 +421,8 @@ unsafe void StartSendProcedure_v2()

}

Task.Run(() =>
{
//Task.Run(() =>
//{
uint p = 0;
int ptr = 0;

Expand Down Expand Up @@ -502,7 +502,7 @@ unsafe void StartSendProcedure_v2()
}
}//eo while

});
//});

}//eof

Expand Down
Binary file modified Process1/SharmIpc/bin/Debug/SharmIpc.dll
Binary file not shown.
Binary file modified Process1/SharmIpc/bin/Debug/SharmIpc.pdb
Binary file not shown.
Binary file modified Process1/SharmIpc/bin/Release/SharmIpc.dll
Binary file not shown.
Binary file modified Process1/SharmIpc/bin/Release/SharmIpc.pdb
Binary file not shown.
Binary file modified Process1/SharmIpc462/bin/Release/SharmIpc.dll
Binary file not shown.
Binary file modified Process1/SharmIpc462/bin/Release/SharmIpc.pdb
Binary file not shown.
Binary file modified Process1/SharmIpcUWP/bin/Release/SharmIpc.dll
Binary file not shown.
Binary file modified Process1/SharmIpcUWP/bin/Release/SharmIpc.pdb
Binary file not shown.
217 changes: 202 additions & 15 deletions Process1/SharmIpcUWP/project.lock.json

Large diffs are not rendered by default.

Binary file added Process2/.vs/Process2/v15/.suo
Binary file not shown.
Binary file added Process2/.vs/Process2/v15/sqlite3/storage.ide
Binary file not shown.
4 changes: 3 additions & 1 deletion Process2/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ Tuple<bool, byte[]> RemoteCall(byte[] data)

void AsyncRemoteCallHandler(ulong msgId, byte[] data)
{
sm.AsyncAnswerOnRemoteCall(msgId, new Tuple<bool, byte[]>(true, new byte[] { 9 }));
//sm.AsyncAnswerOnRemoteCall(msgId, new Tuple<bool, byte[]>(true, new byte[] { 9 }));

sm.AsyncAnswerOnRemoteCall(msgId, new Tuple<bool, byte[]>(true, new byte[512]));

//Task.Run(() =>
//{
Expand Down
Binary file modified Process2/bin/Debug/Process2.exe
Binary file not shown.
Binary file modified Process2/bin/Debug/Process2.pdb
Binary file not shown.
Binary file modified Process2/bin/Debug/SharmIpc.dll
Binary file not shown.
Binary file modified Process2/bin/Debug/SharmIpc.pdb
Binary file not shown.
Binary file modified SharmIPC.1.11.0.nupkg
Binary file not shown.

0 comments on commit fab6cc2

Please sign in to comment.