I can only go by your comments. You are the one who took issue with me previously only responding to your mention of floppy instead of the other mediums. I would think it would be obvious to anybody with any experience with computers that floppies are slower than the named mediums, but evidently not everybody realizes this. If they did, they would not question why I addressed floppies and ignored the others.MachineCode wrote:What the? Don't "ROFL" me! Of course I don't think a floppy is faster! How the heck did you come up with that assumption?
This would be incorrect, because the exe in uncompressed state is not being loaded all at once.MachineCode wrote:I'm saying that a compressed exe will load faster from those three mediums than the same exe in an uncompressed state.
Please explain to me how loading something larger than 4K is faster than loading something that is only 4K. Think very carefully before you answer, because any answer you give will be in direct contradiction to the way Win32/x86 actually works.
Both of these sentences are incorrect.Thorium wrote:Thats not true. It will load the complete code section, which can be more or less than 4K.
Windows handles EXEs as memory mapped files. On Win32/x86 a page is 4K. It can't be larger. This is why a PE is loaded in 4K chunks, with each chunk being in its own page. Pages are only loaded as they are needed and only the code in one page can be executing at any given time. PEs aren't perfect, but they are a lot better than the old days of dealing with NEs.
Compressing an EXE provides no speed in loading. All it does loading-wise is provide bloat, adds a lot of unnecessary steps and an unnecessary waste of time and resources. The entire compressed EXE has to be loaded into memory, then uncompressed to memory or the hard drive (depending on the compressor used) and then the uncompressed EXE is loaded into memory in 4K chunks just like it would be if it was never compressed in the first place.
Of course with the new generation of kids who have been raised on Microsoft's "bloat because you can" approach to programming, they should be right at home with compressed EXEs. More memory usage for loading and slower load times for absolutely no purpose or gain! Luckily, processors are fast enough nowadays to help these developers cover up their shoddy programming and lack of ethical standards. "Bloat because you can" will be around for a long, long time...


