Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool = false
Debug is flag for switching to debug mode
Functions ¶
This section is empty.
Types ¶
type Float64sCache ¶
type Float64sCache struct {
// contains filtered or unexported fields
}
Float64sCache of slices
func (*Float64sCache) Reset ¶
func (c *Float64sCache) Reset()
Reset internal structure. In debug case - better for founding double putting. In normal case - for memory management with different memory profile.
Example of code: w := cache.Get(10) defer func() { if mms.Debug { cache.Reset() } } ... // Put memory in cache in next lines of code
type IntsCache ¶
type IntsCache struct {
// contains filtered or unexported fields
}
IntsCache of slices
func (*IntsCache) Reset ¶
func (c *IntsCache) Reset()
Reset internal structure. In debug case - better for founding double putting. In normal case - for memory management with different memory profile.
Example of code: w := cache.Get(10) defer func() { if mms.Debug { cache.Reset() } } ... // Put memory in cache in next lines of code
Click to show internal directories.
Click to hide internal directories.