A copy from yazi's author as a reference, stating the idea - Yeah that's exactly why previewers (not just archive.lua), are designed to do as little data processing as possible. For performance, doing less may be better than using a smarter algorithm. My idea hasn't changed much: ask 7-Zip to add an option to 7z l: Non-mandatory: Prefer outputting the list sequentially rather than interleaved. Mandatory: Sort the list before outputting it. As you said, if 7z already outputs everything at once, it...
'7z list' order