Nguyễn Thái Ngọc Duy  <pclo...@gmail.com> writes:

> diff --git a/commit.h b/commit.h
> index 838f6a6b26..70371e111e 100644
> --- a/commit.h
> +++ b/commit.h
> @@ -18,12 +18,16 @@ struct commit_list {
>  
>  struct commit {
>       struct object object;
> -     void *util;
>       unsigned int index;
>       timestamp_t date;
>       struct commit_list *parents;
>       struct tree *tree;
>       uint32_t graph_pos;
> +     /*
> +      * Do not add more fields here unless it's _very_ often
> +      * used. Use commit-slab to associate more data with a commit
> +      * instead.
> +      */
>  };

That's a logical consequence and a natural endgame of this
pleasent-to-read series.  THanks.

Unfortunately we are gaining more and more stuff in "struct commit"
with recent topics, and we may want to see if we can evict some of
them out to shrink it again.

To make it clear that everything that is less often used is keyed
off of the "index" field, I think it makes sense to move that field
to either end of the struct (I think in today's integration I
resolved a few merges to leave the "index" field at the end).

Reply via email to