From 9b65f4bd177218bc8b0ebc8583db1ed1f5e78797 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Mon, 6 Jan 2025 09:06:57 -0500 Subject: [PATCH] amend! path-walk: improve path-walk speed with many tags (#5205) path-walk: improve path-walk speed with many tags (#5205) In the presence of many tags, the use of oid_array_lookup() can become extremely slow. We should rely upon the SEEN bit instead. This affects the tag-peeling walk as well as the switch statement for adding the peeled object to the correct oid_array. ---- Derrick Stolee found this while testing the 2.47.0.vfs.0.0 pre-release against a repo with many annotated tags. This is a backport of https://github.com/microsoft/git/pull/695. Signed-off-by: Derrick Stolee