C#Top 36 C# Example Pages...

[["1(BCY*CSTUUUUTTUUUUP666(CXCBSTTUUUUTTUUUU","srwfr.","DeflOpt"," improves compression ratios. It can enhance the compression ratio of your GZIP, ZIP, or PNG files that use the DEFLATE compression algorithm. We use the free DeflOpt.exe command-line executable to do this.","Example."," First we note that even after the highest compression from 7-Zip or other tools, DeflOpt.exe can often reduce your file size by one or more bytes. This tool is written by Ben Jos Walbeehm and is available from his site. ","7-Zip Executable ","7-zip","Note: ","DeflOpt \"optimizes the structures created by deflate programs and then recodes the files using those optimized structures.\"","Windows command line for Deflopt","\n\ndeflopt.exe C:\\yourfolder","To test the program"," on many files, I created a method in the C# programming language that runs the DeflOpt.exe program against an entire directory. Above you can see the command line for running DeflOpt.exe on a directory. ","And: ","The DeflOpt.exe file should be in your current directory when you run that. Here is the C# code I use to automate this command.","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","6227126509","data-ad-format","auto","br","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","6227126509","data-ad-format","auto","Method that executes Deflopt.exe: C#","\n\n","/// <summary>\n/// Run DEFLOPT on compressed files directory\n/// Improves compression ratios minutely\n/// </summary>\n","public static void CompressDirDeflopt(string dir)\n{\n ProcessStartInfo p = new ProcessStartInfo();\n p.FileName = Locations.DefloptExe;"," // Location of DeflOpt.exe\n ","p.Arguments = string.Format(\"{0}\", Quote(dir));\n p.WindowStyle = ProcessWindowStyle.Hidden;\n using (Process x = Process.Start(p))\n {\n x.WaitForExit();\n }\n}","\n\n/// <summary>\n/// Surround string with quotes\n/// </summary>\n","static string Quote(string s)\n{\n return \"\\\"\" + s + \"\\\"\";\n}","Results."," When I run the command on a directory of 296 files with the maximum GZIP compression in 7-Zip, 17 of them are rewritten for a total savings of 17 bytes. That is a total savings of 0.0000164%. ","However: ","If I use a lower initial setting in 7-Zip, I get a savings of 147 bytes, around 10 times as much, which is still tiny.","Summary."," We saw that the results with DeflOpt.exe are less than stunning. But if you are already using it, DeflOpt is sometimes worth keeping, depending on your goals. If you are into compression, it is an interesting tool. ","Also: ","You can use it on PNG and ZIP files, which I didn't test here. Experiment with it and see how it works on your project.","Programs written by Ben Jos Walbeehm ","http://www.walbeehm.com/download/","br","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","3679700504","data-ad-format","link","br","ins","class","adsbygoogle","data-ad-client","ca-pub-4712093147740724","data-ad-slot","6227126509","data-ad-format","auto"],"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAACsCAMAAADllnb2AAAAYFBMVEX////6lbiX3axHPiH97gb7q161sqeYPl3/8vyEj4Td4Ui83XZvzfH8x7VmbFX8eob7/rLW5sn+5NiekecRAw/8xzb/3/vw8/T9/87/yPnD6/iV2/D+/um0pwjKyMj/svb+8CRAAAAJSUlEQVR4XtSZ2XLqOhBFkTzPEzMk+f+/vGobsUFSxaJj17neL3ldrFp2k2T3v979vtvezucNQrftBkW37eb6uLdte96eaLUNikYf2xG9oT5OEK22EeYTRG+mj+sNojfTx60k1e1z921AXyF6I6qvZalUt9uCvinoK92VDfVxKtVuIN6E6itBy+6NehN1lFK2W+kDouW76vMmRKut1MeRlqot/RhKWrdKH+nPY5dpx3HpuL/WQVulj8uPPfNzfPxBbprZUL1UHC7Yzz7HL6JpK/QBHPbsriDaUH1eXTR/g1o8zlS94FNorxFC/Ak6xr6rcehjpadQNDShxheNgbk9ryEazJig8UQDuscpX0k0gBnsEP1KvdgpP86LdrP7igZ0vxj0LDMPHsygXuyUHxnMHs1ANNYtdcrTmaC57GDG5FLQlxnRTHiXaCm7ZfpIF2XGhqFwQPuo5ov+K7MY4tykNr6BrPQU8hfFeRjmJjNtiT4uKzBHh5Dmhi7yHH0sKvovwBOxSiMMHcyyOEzL87xf/inkAx+ihg5LTuSYBPVj/b+OI4o0cDQ9hnFcvPUhLej2vKRobsQHpXgaiTb6kM/lD+a2XVA0C5iawIa4yHNAgxmqc+Z9OXLjsJswzOckXkWdm8x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