Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Monibuca/engine
/ recycle
Method
recycle
util/ring-writer.go:72–78 ·
view source on GitHub ↗
(r *Ring[F])
Source
from the content-addressed store, hash-verified
70
}
71
72
func
(rb *RingWriter[T, F]) recycle(r *Ring[F]) {
73
if
rb.pool == nil {
74
rb.pool = r
75
}
else
{
76
rb.pool.Link(r)
77
}
78
}
79
80
func
(rb *RingWriter[T, F]) Reduce(size int) {
81
p := rb.Unlink(size)
Callers
1
Reduce
Method · 0.95
Calls
1
Link
Method · 0.80
Tested by
no test coverage detected