Re: [PATCH v2 1/9] commit: avoid allocation in clear_commit_marks_many()

2018-01-09 Thread Jeff King
On Mon, Dec 25, 2017 at 06:43:37PM +0100, René Scharfe wrote: > Pass the entries of the commit array directly to clear_commit_marks_1() > instead of adding them to a commit_list first. The function clears the > commit and any first parent without allocation; only higher numbered > parents are

[PATCH v2 1/9] commit: avoid allocation in clear_commit_marks_many()

2017-12-25 Thread René Scharfe
Pass the entries of the commit array directly to clear_commit_marks_1() instead of adding them to a commit_list first. The function clears the commit and any first parent without allocation; only higher numbered parents are added to a list for later treatment. This change extends that