[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH] series: Minor optimizations
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH] series: Minor optimizations |
Date: |
Wed, 01 Apr 2020 15:38:30 +0200 |
* If there is no top patch, then there can't be patches before the
top patch.
* Use applied_before as it is faster than patches_before.
The performance gain was measured to be between 1% and 3% on
half-applied large patch series.
Signed-off-by: Jean Delvare <address@hidden>
---
quilt/series.in | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
--- a/quilt/series.in
+++ b/quilt/series.in
@@ -95,10 +95,13 @@ then
[ -n "$opt_color" ] && setup_colors
top=$(top_patch)
- cat_patches "$color_series_app" \
- "${opt_verbose:++ }" $(patches_before $top)
- [ -n "$top" ] && cat_patches "$color_series_top" \
- "${opt_verbose:+= }" $top
+ if [ -n "$top" ]
+ then
+ cat_patches "$color_series_app" \
+ "${opt_verbose:++ }" $(applied_before $top)
+ cat_patches "$color_series_top" \
+ "${opt_verbose:+= }" $top
+ fi
cat_patches "$color_series_una" \
"${opt_verbose:+ }" $(patches_after $top)
else
--
Jean Delvare
SUSE L3 Support
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] [PATCH] series: Minor optimizations,
Jean Delvare <=