perf: Eliminate duplicate RGB conversion boilerplate #26
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
raster_converter.pyhas the same 10-line RGB conversion block copy-pasted 4 times (lines 74, 597, 640, 696).Proposed Fix
Extract to a shared
_load_as_rgb()helper method.Impact
Code dedup; ~4x faster for preprocess_image pipeline.
Files
src/raster/raster_converter.py:74, 597, 640, 696