Documentation
¶
Overview ¶
Package filememo keeps what was parsed from a file until the file changes, so a page that asks many times over reads it once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Forget ¶ added in v0.1.908
func Forget()
Forget has every file looked at again on its next read: magpie wrote one.
func Gen ¶ added in v0.1.1291
func Gen() uint64
Gen is moved on by every Forget: what is built from files read here, and kept past one read, is built again when it moved.
func Hold ¶ added in v0.1.908
func Hold() (release func())
Hold has a file found unchanged not looked at again, for a request that only reads, until release is called or a second has gone by: the GUI's state looked at each agent's files hundreds of times over, a few thousand looks at the disk that a slow one (a Mac's antivirus looking at each) made seconds. A write meanwhile (Forget) has them looked at.
func Look ¶ added in v0.1.1201
func Look(path string)
Look has the file at path looked at on its next read, even while a request holds what was read (Hold): another magpie may have written it, which Forget, moved on by this one's writes alone, can't know of.
Types ¶
This section is empty.