Documentation
¶
Overview ¶
Package intintmap is a fast int64 key -> int64 value map.
It is copied nearly verbatim from http://java-performance.info/implementing-world-fastest-java-int-to-int-hash-map/
Index ¶
Constants ¶
View Source
const FREE_KEY = 0
FREE_KEY is the 'free' key
View Source
const INT_PHI = 0x9E3779B9
INT_PHI is for scrambling the keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a map-like data-structure for int64s
func New ¶
New returns a map initialized with n spaces and uses the stated fillFactor. The map will grow as needed.
Click to show internal directories.
Click to hide internal directories.