]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Speed up the computation of the POT-Creation-Date.
authorBruno Haible <bruno@clisp.org>
Thu, 1 May 2025 22:45:01 +0000 (00:45 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 May 2025 00:46:11 +0000 (02:46 +0200)
commit7e61dc102e653ff91c811fc3a3f583ac6fe4948e
treefda31a1a7358bb6e2c364eac58365d83651d540b
parentb1168e7d07af06d8fba9fbb448806485cfb1096c
xgettext: Speed up the computation of the POT-Creation-Date.

Reported by Serhii Tereshchenko, Arthur, Adam YS, Foucauld Degeorges
at <https://savannah.gnu.org/bugs/?66865>.

* gettext-tools/src/xgettext.c (has_some_mtimes, max_of_mtimes, some_mtimes_failed): Remove variables.
(files_for_vc_mtime): New variable.
(main): Initialize files_for_vc_mtime. Update files_for_vc_mtime instead of calling consider_vc_mtime.
(consider_vc_mtime): Remove function.
(read_exclusion_file, extract_from_file, extract_from_xml_file): Update files_for_vc_mtime instead of calling consider_vc_mtime.
(finalize_header): Call max_vc_mtime.
* NEWS: Mention the speedup.
NEWS
gettext-tools/src/xgettext.c