Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
meowmeows moved thread, spilt because of thread hijacking
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
meowmeow
Posted: Jan 26 2014, 02:34 PM


Advanced Member


Group: Members
Posts: 98
Member No.: 37160
Joined: 21-September 13



Why save change log file into executable?

It's 164,170 bytes big!
 
     Top
dloneranger
Posted: Jan 26 2014, 04:22 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



What's the problem with it being in the executable?
Windows doesn't load the entire exe into memory, only the bits that get used are loaded on demand
If you don't read the changelog, it isn't loaded off disk

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
meowmeow
Posted: Jan 26 2014, 05:16 PM


Advanced Member


Group: Members
Posts: 98
Member No.: 37160
Joined: 21-September 13



QUOTE (dloneranger @ Jan 26 2014, 04:22 PM)
it isn't loaded off disk

if executable compressed by upx lzma then it certainly will
 
     Top
dloneranger
Posted: Jan 26 2014, 06:09 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



And all the other reasons exe compressors are more trouble than their worth
Seriously what on earth is the point these programs?

Nice hijack of someone else's thread though.....

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
meowmeow
Posted: Jan 26 2014, 06:42 PM


Advanced Member


Group: Members
Posts: 98
Member No.: 37160
Joined: 21-September 13



QUOTE (dloneranger @ Jan 26 2014, 06:09 PM)
Seriously what on earth is the point these programs?

the same why we compress BMP into PNG
file > reader > image
file > reader > program
QUOTE (dloneranger @ Jan 26 2014, 06:09 PM)
Nice hijack of someone else's thread though.....

Thanks! meowmeow's good
 
     Top
dloneranger
Posted: Jan 26 2014, 07:08 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



exe/dlls are not pictures or videos
They do not need to be completely loaded into memory - only the parts used are loaded into memory
Multiple instances of an exe/dll will reuse the same memory pages saving total memory use
Background services can preload just the parts used into the os's memory space for faster startups

exe compressors break all this, for very little benefit
It's even sillier when talking about size of virtualdub vs the size of 1 video

But good luck with the awesome amount of free disk space you gain by compressing virtualdub
Just think of all the things you can do with those free mb's

blink.gif

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
raffriff42
Posted: Jan 26 2014, 07:22 PM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



* Virtualdub exe is not compressed (image)
* Virtualdub is very compact for the amount of functionality it has.
(WinFF: 54MB; StaxRip:140MB; RipBot64: 200MB)
* If the change log were a txt file, it would be take the same disk space anyway.
* At least it's not in Unicode smile.gif
 
     Top
meowmeow
Posted: Jan 26 2014, 09:29 PM


Advanced Member


Group: Members
Posts: 98
Member No.: 37160
Joined: 21-September 13



let meowmeow answer two posts in 1 click smile.gif

exe/dlls are not pictures or videos
Who said "pictures"? I call program - image in view by CPU - if don't contain other things like menu texts inside.

They do not need to be completely loaded into memory - only the parts used are loaded into memory
but they don't need to be compiled into exe either.

Multiple instances of an exe/dll will reuse the same memory pages saving total memory use
good point, but I don't see how it works.

Background services can preload just the parts used into the os's memory space for faster startups
Windows prefetcher? That's why my windows runs slow?

Just think of all the things you can do with those free mb's
I'll compress 17.5 GB in 20771 exe/dll files into 6 GB and save for meowmeow 11.5 GB for SailorMoon'2014 series.

* Virtualdub exe is not compressed
Not my problem (image).

* Virtualdub is very compact for the amount of functionality it has.
not not not
VirtualDub 1.4 - 1.33 MB (uncompressed) 504 KB (compressed)

* If the change log were a txt file, it would be take the same disk space anyway.
So I can just delete it.
 
     Top
dloneranger
Posted: Jan 26 2014, 09:32 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



yawn.... bored now
bye

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
phaeron
Posted: Feb 23 2014, 07:20 PM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



Let me add a couple of more reasons for this:

The first is that adding compression specifically for the changelog would take time, and I already find it hard to get enough time to work on VirtualDub as it is. Therefore, doing so would take time away from working on other parts of the program.

Second, regarding UPX whole-executable compression -- I actually used to do this, but I had to back it out because tons of stupid antivirus programs automatically flag programs compressed with it as a virus. The result was that I just got lots of complaints from people about "why did you give me a virus???" even though there was no such issue. NirSoft has an excellent writeup about all the problems this causes: http://blog.nirsoft.net/2009/05/17/antivir...all-developers/ .

In the end, what it comes down to is that the size amounts we're talking about are pretty small compared to the data that VirtualDub works with, less than a single video frame, so it hasn't been a high enough priority for me. Sorry. However, you can always compress the executable with UPX yourself to save disk space, such as if you've got it on a small USB stick.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
9 replies since Jan 26 2014, 02:34 PM Track this topic | Email this topic | Print this topic

<< Back to Testing / Bug Reports