Skip to content

Commit 3717f52

Browse files
committed
script.sh: do not sort ctags output
By default ctags sorts entries. This is not useful to the update script, but takes time. user time for `update.py 16` on musl v1.2.5 went from 1m21.613s to 1m11.849s.
1 parent 9c74c99 commit 3717f52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ parse_defs_C()
165165
git cat-file blob "$opt1" > "$full_path"
166166

167167
# Use ctags to parse most of the defs
168-
ctags -x --kinds-c=+p+x --extras='-{anonymous}' "$full_path" |
168+
ctags -u -x --kinds-c=+p+x --extras='-{anonymous}' "$full_path" |
169169
grep -avE "^operator |CONFIG_" |
170170
awk '{print $1" "$2" "$3}'
171171

@@ -182,7 +182,7 @@ parse_defs_K()
182182
tmp=`mktemp -d`
183183
full_path=$tmp/$opt2
184184
git cat-file blob "$opt1" > "$full_path"
185-
ctags -x --language-force=kconfig --kinds-kconfig=c --extras-kconfig=-{configPrefixed} "$full_path" |
185+
ctags -u -x --language-force=kconfig --kinds-kconfig=c --extras-kconfig=-{configPrefixed} "$full_path" |
186186
awk '{print "CONFIG_"$1" "$2" "$3}'
187187
rm "$full_path"
188188
rmdir $tmp
@@ -193,7 +193,7 @@ parse_defs_D()
193193
tmp=`mktemp -d`
194194
full_path=$tmp/$opt2
195195
git cat-file blob "$opt1" > "$full_path"
196-
ctags -x --language-force=dts "$full_path" |
196+
ctags -u -x --language-force=dts "$full_path" |
197197
awk '{print $1" "$2" "$3}'
198198
rm "$full_path"
199199
rmdir $tmp

0 commit comments

Comments
 (0)