{"thread":{"id":"48255","subject":"git log slow - due to fetching ref name prefixes despite format string not needing them","startedAt":"2018-04-10T09:57:11Z","lastAt":"2018-04-10T09:57:11Z","messageCount":1,"participants":["Ofer Koren"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"344309","messageId":"CAOt29zrv1Wnu8ZWnY9NZS5J36=16r0t=gMCM3_94SFC_fovnfA@mail.gmail.com","threadId":"48255","inReplyTo":null,"subject":"git log slow - due to fetching ref name prefixes despite format string not needing them","fromName":"Ofer Koren","fromEmail":"ofer@weka.io","sentAt":"2018-04-10T09:57:02Z","receivedAt":"2018-04-10T09:57:11Z","isPatch":false,"sender":{"key":"ofer@weka.io","avatar":null},"body":"----------------\nSlow:\n\n>> time git log --oneline --no-color --format=\"%h %ae %at\" bd4d00302a^1..bd4d00302a^2\n1049ee2882 eyal@weka.io 1518954558\nc0e107f167 eyal@weka.io 1518954522\n\nreal 0m0.119s\nuser 0m0.104s\nsys 0m0.012s\n\n----------------\nFast:\n\n>> time git log --no-decorate --oneline --no-color --format=\"%h %ae %at\" bd4d00302a^1..bd4d00302a^2\n1049ee2882 eyal@weka.io 1518954558\nc0e107f167 eyal@weka.io 1518954522\n\nreal 0m0.011s\nuser 0m0.004s\nsys 0m0.004s\n\n----------------\nAs you can see the output is identical, but the first execution is 10\ntimes slower. Using strace I've found the cause of the difference to\nbe traversal of the '.git/refs/heads/*' folders.\n\nRegards,\n\n- Ofer Koren\n"}]}