Skip to content

refactor(autopack): extract inputs from config#108

Open
jaudiger wants to merge 1 commit intomainfrom
extract-inputs-from-autopack-config
Open

refactor(autopack): extract inputs from config#108
jaudiger wants to merge 1 commit intomainfrom
extract-inputs-from-autopack-config

Conversation

@jaudiger
Copy link
Contributor

@jaudiger jaudiger commented Jan 27, 2026

This PR refactors AutopackConfig to extract inputs field from the config. It has two advantages:

  • Reduce a bit the memory while doing the autopack since inputs lifecycle is no more constrained to the lifecycle of AutopackConfig (which has a longer lifetime here).
  • Prevent cloning the paths in AutopackInputs::Paths since we can now borrow the inputs.

Other side effect but from an API design view: having the inputs outside of AutopackConfig makes more sense since they are both independent, one of side we have the inputs of the function and on the other side we have the parameters.

@jaudiger jaudiger requested a review from kylewlacy January 27, 2026 07:38
@jaudiger jaudiger self-assigned this Jan 27, 2026
Signed-off-by: Jérémy Audiger <jeremy.audiger@icloud.com>
@jaudiger jaudiger force-pushed the extract-inputs-from-autopack-config branch from 5899146 to 8184cc7 Compare January 27, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant