Open kyeastmood opened 4 years ago
Perhaps in areas which use mutable types, the creation could pre-allocate the capacity. An example: https://github.com/MaddTheSane/XADMaster-2/commit/056bd4209d6e6eb8a6c11b622bbc1e2345d5ae74
Running this through my own fork through Instruments, it looks like a lot of it is taken up by regncomp_l
(30.6%). Maybe caching the regex could cut down on time (IIRC, Colloquy does that)?
Archive: link This archive contains 100K files and it can show the difference in performance between LSAR/UNAR and 7-Zip when printing text. Archives containing tens of thousands of files are not unusual.
Results of listing contents of the archive verbosely:
7-Zip:
Time: ~1 second Log size: 16 MiB
LSAR:
Time: 1 minute 5 seconds Log size: 41.7 MiB
So we can see that LSAR listed the archive about 60 times slower but the output log is only less then 3 times bigger. This is a significant bottleneck even when processing smaller archives containing only 10-20K files.
Thanks
P.S. Sorry for spamming you with quite a few issues at the same time. I've accumulated them over the last ~4 years of usage and I've learned only recently that you have a repository on GitHub.