Optimize LZ OutWindow.CopyBlock#907
Conversation
98bb86c to
c2d9bf9
Compare
|
After more testing I found that my initial commit despite helping a lot with the Qt archive, could slow down others. An example is here (426 MB). I investigated the differences and determined that As much as I hated having to duplicate some of the code, I did my best to clean it up at the same time so it's not too bad overall in my opinion. After splitting it up like this, I still get the big performance gains from the Qt archive, I found a couple others that were quicker too, and then another handful including the one I just linked that at least don't regress in performance anymore (if anything maybe a slight increase but it's probably a drop in the bucket). Despite the perhaps-not-as-simple code, I feel it's worth it for the performance potential. If you agree, feel free to merge, and if not, no worries - I am already using a custom build and could continue to do so. |
adamhathcock
left a comment
There was a problem hiding this comment.
Copying for a reason is always good.
|
Thanks! |
After a bit of profiling, this function seemed like a good candidate for optimization. Testing on a large-ish archive (412 MB), I'm seeing extraction times like: