hunt-searchengine-0.3.0.0: A search and indexing engine.

Safe HaskellNone
LanguageHaskell98

Data.IntSet.Cache

Description

A cache for single element IntSets with elements 0 <= i < cacheSize (1024) These single element sets occur very frequently in position sets in occurrence maps, so sharing becomes available with this cache.

Usage: substitute all singleton calls with cacheAt calls and all fromList calls with IS.unions . map cacheAt.

Synopsis

Documentation

cache :: Vector IntSet Source

Initialize the IntSet cache.

cacheAt :: Int -> IntSet Source

A (cached) IntSet singleton.