Repository navigation
model-train store: read_table_row out of reconstruct_param; 439 -> 149 lines - #551
Conversation
reconstruct_param was 439 lines, most of it the arm reading one 'table' row (partition, precursor and fragment offsets, rank distributions, error and existence tables). That arm moves unchanged to read_table_row; the seven tables it fills are a TableRows accumulator, destructured under the old names before the Param is built. Its row skips (continue on the row loop) become returns, and the batch it receives is a reference. Its fn_lines.tsv line is dropped. reconstruct_param 439 -> 149 lines.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Part of the function-length work:
reconstruct_param(crates/model-train/src/store/read.rs) goes from 439 to 149 lines.Most of the function was the arm that reads one
tablerow: partitions, precursor and fragment offsets, rank distributions, error and existence tables. That arm moves unchanged toread_table_row.TableRowsaccumulator, destructured under the old names before theParamis built.continueon the row loop, all at arm level) becomereturn Ok(()).The function's line is dropped from
fn_lines.tsv.Verification: release build; tests pass in every crate, including
train_end_to_endand the model store round-trip tests; clippy is clean with both feature sets.Summary by CodeRabbit