]> 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 01:05:20 +0000 (03:05 +0200)
commitfec02ab99e3fe413c8301c2e4e7e7000e893e7e2
treefc02bd5b6b3d4d18e436c23b1b9df61804374e44
parentd8b2faeb36cfee4dcf2a57ed10ea398ffb449fd5
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