![]() It is the most popular zip file extractor software since 1991. Achieving this is however, a larger undertaking than just calling the library function so again it's a trade off between development time/complexity and run time.Īs far as the rest of your code goes, I would consider moving your output methods behind an interface and implementing it in another class. WinZip Software Rating: 4.8/5 Compatible Platforms: Windows, macOS, iOS, and Android Unpacking Formats: BZ2, LHA, LZH, RAR, ZIP, Zipx, 7Z, and more Free Trial: 20 days Price: 7.99/year No zip software list is complete without WinZip. It should be possible to improve the performance by using multiple threads to perform the compression, which is why zip products usually offer this as an option. Running some tests on my computer, it doesn't look like the compression algorithm has been used to maximize processor usage. I did some searching and almost everyone says 7Zip is the best archiver because it's free, open source, fast, and supports many archive formats, but I also saw a post about zip being the best archive format, RAR being outdated and 7zip being slightly worse for zip. This tells the algorithm to prioritize speed over compression, so you trade size for time. ZipFile.CreateFromDirectory(startDir, zipDir, CompressionLevel.Fastest, false) Its major limitation is ZIP creation and extraction and only RAR extraction, leaving it behind many in this group. Still in version 8.0, PKZips interface is one of the best and shares virtually identical menu structure with WinRAR. In such cases, youll need third-party file compression apps that help you create, open, and manage ZIP or RAR files alongside other compressed file formats. String startDir = $"c:/users//log/errorlog.txt", e.ToString()) Īs has been said in the stack overflow answer, the easiest way to improve performance is to use the alternate overload for ZipFile.CreateFromDirectory that supports you specifying the compression level. PKZip, along with WinZip, is the fastest archiver in our test using ZIP format. String finalString = new String(randFileName) Var chars = "abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" įor (int i = 0 i < randFileName.Length i++) So the files really aren't to big, so I'm not sure if this is a good process time or not, it seems a little slow to me and I was wondering if there's anyway I can speed this up? using System Ĭonsole.ForegroundColor = ConsoleColor.White Ĭonsole.ForegroundColor = ConsoleColor.Yellow Ĭonsole.ForegroundColor = ConsoleColor.DarkCyan Ĭonsole.ForegroundColor = ConsoleColor.DarkRed Ĭonsole.ForegroundColor = ConsoleColor.DarkYellow I understand that depending on the size of the files it's archiving and depending on how many files plays a big roll, so here's an image of the file sizes that I'm using as my test: So the average time for this process to run is 47.369536648 seconds. I added a simple benchmark in order to test the speed and ran it five times. ![]() It works, and it does what it's suppose to do, but I think it's pretty slow. I'm new to c# and have created a basic file archiver. RAR for Android 6.I asked this question on Stackoverflow, and was told I might have better luck here. If you prefer not to have cookies stored within your web-browser, please adjust your browser settings accordingly. ![]() For more detailed information regarding the use of cookies on this website, please see our "Privacy Policy". ![]() By using this website, you consent to the use of cookies. Our website uses cookies to help improve your visit. ![]() We want you to have the best possible experience while using our service. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |