diff options
| author | pi coding agent <pi@localhost> | 2026-10-15 20:44:47 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-15 15:53:35 -0500 |
| commit | cdafc493256ad56fe2e50ba80d93baffa7c2d149 (patch) | |
| tree | e0c91a732483dbee1cbf59457c458a859075abae /scripts/insert_samples.py | |
| parent | 82b9270d344f75302bc06aaaf328b4f432d997c0 (diff) | |
| download | gn-uploader-cdafc493256ad56fe2e50ba80d93baffa7c2d149.tar.gz | |
Refactor: extract per-line accumulation helper
Move the per-line processing loop out of `file_stats_singlethread` into a reusable `_accumulate` helper that returns a `_ChunkStats` value. This makes the accumulation logic available to both the single-threaded and the multi-processed implementations and allows a single source of truth for the processing logic. The new module-level `_make_line_splitter` and `_make_is_skippable_line` helpers build the closures from plain configuration values, so callers no longer need to pass unpicklable lambdas around. `file_stats_singlethread` is re-expressed in terms of the extracted helpers and its signature simplified to `(fileconfigs, headers, lines)`.
Diffstat (limited to 'scripts/insert_samples.py')
0 files changed, 0 insertions, 0 deletions
