commit-graph: minimize commit_graph_data_slab access
authorAbhishek Kumar <redacted>
Wed, 17 Jun 2020 09:14:11 +0000 (14:44 +0530)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
bloom.c
commit-graph.c
commit-reach.c
commit.c
revision.c
git clone https://git.99rst.org/PROJECT