]> git.ipfire.org Git - thirdparty/git.git/commit - name-hash.c
name-hash: use trace2 regions for init
authorDerrick Stolee <dstolee@microsoft.com>
Sat, 23 Jan 2021 19:58:16 +0000 (19:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Jan 2021 01:14:07 +0000 (17:14 -0800)
commit6a9372f4ef218d189120e969f6dc01f9fcd5317a
treeacba06fae0bfc1b0f515c92a4e815a2ec48f6c4d
parent1fd9ae517c45294a01466aad0d38f99c7893d814
name-hash: use trace2 regions for init

The lazy_init_name_hash() populates a hashset with all filenames and
another with all directories represented in the index. This is run only
if we need to use the hashsets to check for existence or case-folding
renames.

Place trace2 regions where there is already a performance trace.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
name-hash.c