]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: short-circuit is_ancestor check on equality
authorEric Wong <e@80x24.org>
Thu, 30 May 2019 06:35:05 +0000 (06:35 +0000)
committerEric Wong <e@80x24.org>
Thu, 30 May 2019 06:40:27 +0000 (06:40 +0000)
commite261bedfae7f2eb192109b5fdd4113440fee7e22
tree97d812dcbb233cbb0f2bc29911771f7d297ee698
parent6a2805beea98eb52b8ed866758fd2c416e22fdfb
v2writable: short-circuit is_ancestor check on equality

We don't need to use git to check ancestry if object IDs
match on a string comparison.

This saves 100ms or so and brings down the ~0.5s no-op time on
lore.kernel.org/lkml down to ~0.4s.
lib/PublicInbox/V2Writable.pm