feat(perf): optimize find commands in image customization script#413
Merged
igorpecovnik merged 2 commits intoarmbian:mainfrom Dec 23, 2025
Merged
feat(perf): optimize find commands in image customization script#413igorpecovnik merged 2 commits intoarmbian:mainfrom
igorpecovnik merged 2 commits intoarmbian:mainfrom
Conversation
Combines three separate `find` commands in the `customize-image.sh` script into a single, more efficient command. Previously, the script spawned three processes and traversed the `/etc/apt/sources.list.d/` directory three times to delete files matching different patterns. This change consolidates the logic into a single `find` command using the `-o` (OR) operator. This optimization reduces the number of forked processes from three to one and ensures the directory is traversed only once, leading to a small but meaningful performance improvement and cleaner code.
…04378999262 Optimize find commands in customize-image.sh
igorpecovnik
approved these changes
Dec 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.