# [Q] Where does "git commit -q -m msg" spend time?

1 messages from 2022-11-19 to 2022-11-19. Participants: Junio C Hamano.
Thread: https://gitlist.dev/t/58817

## Junio C Hamano, 2022-11-18 23:37

Subject: [Q] Where does "git commit -q -m msg" spend time?
Message-ID: <xmqqbkp3kf5y.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqbkp3kf5y.fsf%40gitster.g

```
On a slow filesystem it gets more noticeable, but I have been
wondering (without a debugger or a profiler, as I am supposed to be
on vacation) for the past few weeks why these two commands in the
same repository perform very differently:

    $ git write-tree
    $ git commit -q -m msg

Especially even after running the former, running the latter, which
I naïvely thought that it only needs to create a commit object with
"msg" and wrapping the result of the former (which is more-or-less
instant) into it, and do nothing else.

```
