Пример #1
0
        internal long GetIndexSizeCacheLines()
        {
            long adjustedSize = Utility.PreviousPowerOf2(IndexSize);

            if (adjustedSize < 64)
            {
                throw new FasterException($"{nameof(IndexSize)} should be at least of size one cache line (64 bytes)");
            }
            if (IndexSize != adjustedSize)
            {
                Trace.TraceInformation($"Warning: using lower value {adjustedSize} instead of specified {IndexSize} for {nameof(IndexSize)}");
            }
            return(adjustedSize / 64);
        }