Skip to content

Commit 6f0afa8

Browse files
committed
FIXUP: Builder
1 parent f314905 commit 6f0afa8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bin/generate_dictionary.rs

+6
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ fn main_aux() {
190190
let depth = str::parse(matches.value_of("depth").unwrap())
191191
.expect("Invalid number");
192192

193+
progress!(quiet, "Generating dictionary with lazification {lazification}, depth {depth}",
194+
lazification = lazification,
195+
depth = depth);
196+
193197
// Setup.
194198
let parser = Shift::new();
195199
let mut dictionary = Dictionary::default();
@@ -220,12 +224,14 @@ fn main_aux() {
220224
.expect("Could not create directory");
221225

222226
let dest_dictionary = dest.join("dict.entropy");
227+
progress!(quiet, "Writing probabilities to {:?}", dest_dictionary);
223228
let file_dictionary = File::create(dest_dictionary)
224229
.unwrap_or_else(|e| panic!("Could not create file: {:?}", e));
225230
bincode::serialize_into(file_dictionary, &dictionary)
226231
.expect("Could not serialize entropy dictionary");
227232

228233
let dest_strings = dest.join("dict.strings");
234+
progress!(quiet, "Writing strings to {:?}", dest_strings);
229235
let file_strings = File::create(dest_strings)
230236
.unwrap_or_else(|e| panic!("Could not create file: {:?}", e));
231237
bincode::serialize_into(file_strings, &files_containing_string)

0 commit comments

Comments
 (0)