Skip to content

Commit 1ce6891

Browse files
author
Matéo Fernandez
committed
feat(optimization): use new constant_memory feature from rust_xlsxwriter
1 parent 11cf7ba commit 1ce6891

File tree

3 files changed

+69
-9
lines changed

3 files changed

+69
-9
lines changed

Cargo.lock

Lines changed: 62 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ authors = [
99

1010
[dependencies]
1111
apache-avro = "0.17"
12-
bon = "2.3.0"
12+
bon = "2.3"
1313
clap = { version = "4.5", features = ["derive", "env"] }
1414
clap-verbosity-flag = "2.2"
15-
rust_xlsxwriter = { version = "0.77", features = ["zlib", "ryu"] }
16-
scraper = "0.20.0"
15+
rust_xlsxwriter = { version = "0.79", features = ["zlib", "ryu", "constant_memory"] }
16+
scraper = "0.20"
1717
serde = { version = "1.0", features = ["derive"] }
1818
tracing = "0.1"
19-
tracing-log = "0.2.0"
19+
tracing-log = "0.2"
2020
tracing-subscriber = "0.3"

src/excel/workbook.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ impl WorkbookDto {
1616
let mut workbook = rust_xlsxwriter::Workbook::new();
1717

1818
for worksheet_data in self.worksheets.iter() {
19-
let worksheet = workbook.add_worksheet().set_formula_result_default("");
19+
let worksheet = workbook
20+
.add_worksheet_with_constant_memory()
21+
.set_formula_result_default("");
2022

2123
// set custom name if present
2224
let worksheet = match &worksheet_data.name {

0 commit comments

Comments
 (0)