Oops!
While working with scrc I made the pak files output sorted by size. This doesn't seem to have helped with performance but I guess it might be nice to maybe do the conversion in hand.. or just make the writer take a vector of pair to use.