@@ -9,7 +9,7 @@ use compressors::roaring_bool::RoaringBoolCompressor;
99use compressors:: roaring_int:: RoaringIntCompressor ;
1010use compressors:: struct_:: StructCompressor ;
1111use compressors:: varbin:: VarBinCompressor ;
12- use compressors:: { CompressedArray , CompressionTree , CompressorRef } ;
12+ use compressors:: { CompressedArray , CompressorRef } ;
1313use vortex_alp:: { ALPEncoding , ALPRDEncoding } ;
1414use vortex_array:: array:: {
1515 PrimitiveEncoding , SparseEncoding , StructEncoding , VarBinEncoding , VarBinViewEncoding ,
@@ -126,16 +126,8 @@ impl Objective {
126126 base_size_bytes : usize ,
127127 config : & CompressConfig ,
128128 ) -> f64 {
129- let num_descendants = array
130- . path ( )
131- . as_ref ( )
132- . map ( CompressionTree :: num_descendants)
133- . unwrap_or ( 0 ) as u64 ;
134- let overhead_bytes = num_descendants * config. overhead_bytes_per_array ;
135- let size_in_bytes = array. nbytes ( ) as u64 + overhead_bytes;
136-
137129 match & config. objective {
138- Objective :: MinSize => ( size_in_bytes as f64 ) / ( base_size_bytes as f64 ) ,
130+ Objective :: MinSize => ( array . nbytes ( ) as f64 ) / ( base_size_bytes as f64 ) ,
139131 }
140132 }
141133}
@@ -153,8 +145,6 @@ pub struct CompressConfig {
153145 max_cost : u8 ,
154146 // Are we minimizing size or maximizing performance?
155147 objective : Objective ,
156- /// Penalty in bytes per compression level
157- overhead_bytes_per_array : u64 ,
158148
159149 // Target chunk size in bytes
160150 target_block_bytesize : usize ,
@@ -172,7 +162,6 @@ impl Default for CompressConfig {
172162 sample_count : 16 ,
173163 max_cost : constants:: DEFAULT_MAX_COST ,
174164 objective : Objective :: MinSize ,
175- overhead_bytes_per_array : 64 ,
176165 target_block_bytesize : 16 * mib,
177166 target_block_size : 64 * kib,
178167 rng_seed : 0 ,
0 commit comments