]> git.ipfire.org Git - thirdparty/git.git/commit - commit.c
commit-graph: minimize commit_graph_data_slab access
authorAbhishek Kumar <abhishekkumar8222@gmail.com>
Wed, 17 Jun 2020 09:14:11 +0000 (14:44 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2020 21:37:52 +0000 (14:37 -0700)
commitc752ad09c4ea479e8d54d08637cc0e5709723208
treeaf0f1faa8d6e5149dec7d008a1370483c09ca151
parentc49c82aa4c1036ba1629f73223cff53230e695f3
commit-graph: minimize commit_graph_data_slab access

In an earlier patch, multiple struct acccesses to `graph_pos` and
`generation` were auto-converted to multiple method calls.

Since the values are fixed and commit-slab access costly, we would be
better off with storing the values as a local variable and reusing it.

Signed-off-by: Abhishek Kumar <abhishekkumar8222@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bloom.c
commit-graph.c
commit-reach.c
commit.c
revision.c