Пример #1
0
        public void calcAlgo(string label, IConari l, WCharPtr data, WCharPtr filter, Func <WCharPtr, WCharPtr, IConari, bool> method)
        {
            var meter = new Meter();

            double results = 0;

            meter.start();

            results += meter.delta();

            for (int total = 0; total < average; ++total)
            {
                meter.start();
                for (int i = 0; i < iterations; ++i)
                {
                    if (method(data, filter, l))
                    {
                    }
                }
                results += meter.delta();
                Console.Write(".");
            }

            Console.WriteLine($"{label}{ms(results / average)}");
        }
Пример #2
0
 public bool regXwildExtDLR(WCharPtr data, WCharPtr filter, IConari l)
 {
     return(l.DLR.searchExtC <bool>(data, filter, true));
 }
Пример #3
0
 public bool regXwildExtLambda(WCharPtr data, WCharPtr filter, IConari l)
 {
     return(l.bind <Func <WCharPtr, WCharPtr, bool, bool> >("searchExtC")(data, filter, true));
 }