Hi, Peff, > Why is Olga’s solution rejected? > 1. Olga's solution is to let `git cat-file` use the `ref-filter` interface, > the performance of `cat-file` appears to be degraded due "very eager to > allocate lots of separate strings" in `ref-filter` and other reasons. I am thinking today whether we can directly append some object information directly to `&state->stack->output`, Instead of assigning to `v->s` firstly. But in `cmp_ref_sorting()` we will use `get_ref_atom_value()`, It is possible to compare `v->s` of two different refs, I must goto fill object info in `v->s`. So I think this is one of the reasons why `ref-filter` desires to allocate a large number of strings, right? -- ZheNing Hu