MCPcopy
hub / github.com/NVIDIA/aistore / avgCompressionRatio

Method avgCompressionRatio

dsort/manager.go:533–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531}
532
533func (m *Manager) avgCompressionRatio() float64 {
534 return float64(m.totalCompressedSize()) / float64(m.totalUncompressedSize())
535}
536
537// incrementRef increments reference counter. This prevents from premature cleanup.
538// Each increment should have corresponding decrement to prevent memory leaks.

Callers 2

startMethod · 0.95
extractShardMethod · 0.95

Calls 2

totalCompressedSizeMethod · 0.95
totalUncompressedSizeMethod · 0.95

Tested by

no test coverage detected