After reusing ref-filter logic for cat-file --batch, the function of cat-file --batch has been enhanced, but the performance of cat-file is severely degraded. So we need a better solution to solve it. its last version is here: https://lore.kernel.org/git/pull.993.v2.git.1626363626.gitgitgadget@xxxxxxxxx/ Use google doc to show some of my recent ideas: https://docs.google.com/document/d/1hyM-ecMd8C_TJ3OsOn46nMr8ZxCUxeK7HKj-bRkq3sk/edit?usp=sharing Anyone is welcome to comment and suggest better solutions! Thanks! -- ZheNing Hu