-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skyline: Add MultiFileLoader.Dispose() to dispose its QueWorker… #2395
Conversation
…all it from ChromatogramManager.Dispose() - Remove desktop.ini file from ExportMethodDialogTest.zip to improve the folder deletion experience for test results folders
…k/20221123_test_fixes
How does removing desktop.ini improve folder deletion? Avoids an extra confirmation dialog? Of course it shouldn't have been in there in the first place, but just keep in mind that updating the zip file (probably) increases the repository size by the zip file size because git (probably) can't do much delta compression between zips. I say probably because 7zip was able to zip up the before and after ExportMethodDialogTest.zip zips to the same size as 1 zip with LZMA2 algorithm, but the zip/deflate algorithm was double the size. A brief search in git docs doesn't reveal any special compression modes for binary files. NB: it's too late to reverse this without GC'ing the repository since it's already been pushed, but it's worth keeping in mind for future zip file updates. (Repository size is still on my mind from considering the effect of Resources.resx changes on repository size). This is why I stopped using tarballs for changes to vendor test data and BiblioSpec test data. |
This pull request originally had modified "ExportMethodDialogTest.zip", which I had to revert when I merged from master. I have long been thinking that we should modify "ExtensionTestContext.ExtractTestFiles" so that, if it notices that the .zip path is actually a directory name, it just copies the files out of there instead of extracting a zip. This would enable us to decide case by case whether it's better to check in a single .zip file or the contents of an exploded zip. My guess is that two nearly identical binary files will probably get compressed well by git when everything is packed together, but I am not sure. I read somewhere that git looks for files which have identical filenames, and compresses those in the same block, so that if there is a lot of data shared between them the end result is smaller. However, I don't know whether that would actually be effective on two 6MB files, and I'm not even sure that this happens for binary files-- maybe only text. |
Easy enough to test. The uncompressed tar is of course 12MB. Compressing that with either gzip or bzip2 on max compression results in a change less than 100KB (slight growth in bzip2's case, slight shrinkage for gzip). Long live LZMA2! Unfortunately git doesn't use it. :) |
/rebase |
… and call it from ChromatogramManager.Dispose()