Exemplo n.º 1
0
        Mem()
        {
            // so not even 1/2 the size of the window which was only getting < 50% hit ratio at best
            // PageCache may be better off than a huge window...
            // PageCacheMax default is 100000 which is 390MB or so.
            if (!PageCache.Initalized)
            {
                PageCache.InitPageCache(Environment.ProcessorCount * 4, PageCacheMax);
            }

            // common init
            MapViewBase = 0;
            // 64MB
            MapViewSize = 0x1000 * 0x1000 * 4;
        }