AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Native Zip/Unzip support in Autohotkey

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
T800



Joined: 15 Oct 2006
Posts: 31
Location: Croatia

PostPosted: Mon Oct 01, 2007 12:09 am    Post subject: Native Zip/Unzip support in Autohotkey Reply with quote

I think that Autohotkey could very easy have a native support for zip/unzip

First take a look here:
http://www.codeproject.com/file/zip_utils.asp
or here
http://www.wischik.com/lu/programmer/zip_utils.html

Now take a look at what I have easily done with this source code
http://www.autohotkey.com/forum/viewtopic.php?t=23741

For example, one could load entire simple text file or bitmap into memory directly from zip, and it's all for very small memory/size sacrifice.

Maybe this should be added to the wish list?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3593
Location: Belgrade

PostPosted: Mon Oct 01, 2007 10:02 am    Post subject: Reply with quote

I think its not bad idea but I beleive it would duoble the exe size. If it can be done without much sacreficing size of the exe, it would be nice to have.
_________________
Back to top
View user's profile Send private message MSN Messenger
T800



Joined: 15 Oct 2006
Posts: 31
Location: Croatia

PostPosted: Mon Oct 01, 2007 3:46 pm    Post subject: Reply with quote

Well, I made a static unzip library and it's 176 kb , when you zip it up, it's 57 kb.
For zip component it's 164 kb static, 53 kb zipped.
Plus the use of upx.

There is an option in VS2003 and 2005 called "link time code generation" which AHK project uses,
designed for executable optimization in release configuration.
(the whole process how exe is built is actually quite interesting).
When I'm using this option I get significant (up to 50%)
size reduction and speed optimization in my Zip Thumbnails project.

Just for size comparison, AHK help file is 1,069 MB and runtime exe is 233 kb.
Another option is to use zlib.dll dynamicaly, so then it's optional and no size added.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group