示例#1
0
        public BitPickerWorker(BitPickerWorkerGroup data, int workerIndex)
        {
            this.data        = data;
            this.workerIndex = workerIndex;

            results   = new List <BitPickerHelper.Result>();
            stopwatch = new Stopwatch();

            matchMemoryLength = 0;
            matchMemory       = null;

            tempMaches = new Slice <int>(new int[FuzzyMatcher.ExpectedMaxMatchesPerItem * 10], 0);
        }
示例#2
0
        static BitPickerHelper()
        {
            var workerCount = Mathf.Max(System.Environment.ProcessorCount, 1);

            workerGroup = new BitPickerWorkerGroup(workerCount);
        }