From 2a9c2fec4efd1b88e2ee8ad87818d8435a97619f Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Mon, 3 Jul 2017 15:46:52 -0700 Subject: Optimize creation of commit API by using Repository#commit instead of Repository#commits Repository#commits is expensive because it has to use Rugged to walk the Git tree as opposed to doing a direct ref lookup. Improves performance in #34533 --- changelogs/unreleased/sh-optimize-project-commit-api.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changelogs/unreleased/sh-optimize-project-commit-api.yml (limited to 'changelogs/unreleased') diff --git a/changelogs/unreleased/sh-optimize-project-commit-api.yml b/changelogs/unreleased/sh-optimize-project-commit-api.yml new file mode 100644 index 00000000000..e6a8a80593c --- /dev/null +++ b/changelogs/unreleased/sh-optimize-project-commit-api.yml @@ -0,0 +1,4 @@ +--- +title: Optimize creation of commit API by using Repository#commit instead of Repository#commits +merge_request: +author: -- cgit v1.2.1