##// END OF EJS Templates
fixed AsyncQueue iterator
fixed AsyncQueue iterator

File last commit:

r125:f803565868a4 v2
r127:d86da8d2d4c3 v2
Show More
Program.cs
34 lines | 816 B | text/x-csharp | CSharpLexer
cin
improved tracing...
r93 using System;
using Implab.Diagnostics;
using Implab.Parallels;
using Implab;
cin
sync
r103 using System.Collections.Generic;
using System.Collections.Concurrent;
cin
improved tracing...
r93
namespace MonoPlay {
class MainClass {
public static void Main(string[] args) {
cin
minor fixes
r94 if (args == null)
throw new ArgumentNullException("args");
cin
sync
r103 const int count = 10000000;
var t1 = Environment.TickCount;
cin
improved tracing...
r93
cin
improved performance of promises
r125 for (int i = 0; i < count; i++) {
var p = new Promise<int>();
p.On(x => {}).On(x => {});
cin
improved tracing...
r93
cin
improved performance of promises
r125 p.Resolve(i);
}
cin
working version of AsyncQueue and batch operations...
r121
cin
sync
r103 var t2 = Environment.TickCount;
cin
improved performance of promises
r125 Console.WriteLine("done: {0} ms, {1:.00} Mb, {2} GC", t2 - t1, GC.GetTotalMemory(false) / (1024*1024), GC.CollectionCount(0) );
cin
improved tracing...
r93
}
}
}