Sorry for the real long delay. Got caught up with office work.
# Create a list of source files requiring gtags update
$ wc -l gtags.files
8 gtags.files
# Touch the source files to force an update
$ cat gtags.files|xargs touch
# Update gtags via single file update
$ time for ii in `cat gtags.files`; do /usr/software/bin/gtags --single-update $ii; done
real 1m19.445s
user 0m11.462s
sys 0m9.379s
# Touch the source files to force an update
$ cat gtags.files|xargs touch
# Update gtags via batch processing the list of files (patch attached)
$ time gtags -D -i -f gtags.files
real 0m11.431s <--- Improved performance
user 0m1.536s <--- Improved performance
sys 0m1.219s <--- Improved performance
with best regards,
dhruva