β‘ Bolt: Optimize list_work loop with shell builtins #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π‘ What: Optimized
list_workfunction inlib/internal/work_manager.shto use bash builtins instead of spawning external processes (basename,sed,grep) inside the loop. Also fixed a test isolation issue intests/integration/test_workflow.bats.π― Why: Listing work items was slow due to spawning 4 processes per item. For 50 items, this meant 200 process forks.
π Impact:
π¬ Measurement:
time list_workwith 50 items.bats tests/integration/test_workflow.batsto ensure correctness.PR created automatically by Jules for task 11421419893823680587 started by @oyi77