Skip to content

Commit 10cba76

Browse files
committed
remote: lower the default vector size to 8
As it is, this is space for 32 refs pointers, which feels a little much. Lower it to 8, as it is the minimum vector size anyway.
1 parent 3652b83 commit 10cba76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static int create_internal(git_remote **out, const char *url, const git_remote_c
261261

262262
remote->repo = opts->repository;
263263

264-
if ((error = git_vector_init(&remote->refs, 32, NULL)) < 0 ||
264+
if ((error = git_vector_init(&remote->refs, 8, NULL)) < 0 ||
265265
(error = canonicalize_url(&canonical_url, url)) < 0)
266266
goto on_error;
267267

0 commit comments

Comments
 (0)