File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,18 @@ impl Command {
189189 let total_uncompressed_size: u64 =
190190 response. terms . iter ( ) . map ( |term| term. unpacked_length as u64 ) . sum ( ) ;
191191
192+ // Count unique XORBs
193+ let unique_xorbs: std:: collections:: HashSet < _ > = response. terms . iter ( )
194+ . map ( |term| & term. hash )
195+ . collect ( ) ;
196+
192197 println ! ( "Compressed Size: {}" , format_bytes_with_units( total_compressed_size) ) ;
193198 println ! ( "Uncompressed Size: {}" , format_bytes_with_units( total_uncompressed_size) ) ;
194199 println ! (
195200 "Compression Ratio: {:.2}%" ,
196201 ( total_compressed_size as f64 / total_uncompressed_size as f64 ) * 100.0
197202 ) ;
203+ println ! ( "XORBs: {} unique" , unique_xorbs. len( ) ) ;
198204 Ok ( ( ) )
199205 } ,
200206 None => {
You can’t perform that action at this time.
0 commit comments