Improve loops #10

Merged
thomas.gebert merged 1 commits from retention-helper-while-loops into main 2025-01-03 12:34:30 +00:00

Eliminating for loops and using pipe for input the while loops shall improve
the memory footprint and performance.


The for loop:

root@fs-thomasg-c2-n1 /mnt/special/repo1/repo1/data # time retentionHelper.sh -d .  -r 120 -n 700 -m set

real    7m14.408s
user    4m44.674s
sys     1m27.005s

The new while loop:

root@fs-thomasg-c2-n1 /mnt/special/repo1/repo1/data # time retentionHelper.sh -d .  -r 120 -n 700 -m set

real    4m11.377s
user    4m36.158s
sys     1m14.304s
Eliminating for loops and using pipe for input the while loops shall improve the memory footprint and performance. --- The _for_ loop: ``` root@fs-thomasg-c2-n1 /mnt/special/repo1/repo1/data # time retentionHelper.sh -d . -r 120 -n 700 -m set real 7m14.408s user 4m44.674s sys 1m27.005s ``` --- The new _while_ loop: ``` root@fs-thomasg-c2-n1 /mnt/special/repo1/repo1/data # time retentionHelper.sh -d . -r 120 -n 700 -m set real 4m11.377s user 4m36.158s sys 1m14.304s ```
thomas.gebert added 1 commit 2025-01-03 12:34:18 +00:00
Eliminating for loops and using pipe for input the while loops shall improve
the memory footprint and performance
thomas.gebert merged commit 4eb1d232bd into main 2025-01-03 12:34:30 +00:00
thomas.gebert deleted branch retention-helper-while-loops 2025-01-03 12:34:44 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thomas.gebert/coyote#10
No description provided.