OZONE Asylum
Forums
Mad Scientists' Laboratory
TrickyScripter
This page's ID:
27370
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I think some version of PPM is the best choice for scripts compression (and also for any texts). But it is too slow for JS client side decompression. It is interestiong for experiments but not for practical use with JS. LZ techniques are fast at all but still too slow for JS implementation. Also there is no algorithms that can be normally used with JS on client side - because they all produce binary data. When converting from binary to BASE64 we loosing the sence of compression because this convertation usually compensate the compression. When I was thinking about script's size reduction the first thing I though was compression. And I made lots of experiments on that field. What is the most effective way to compress images? Lossy algorithms. DCT, wavelets. My tool implements lossy compression for scripts - the local vars and functions names are lost after optimization. All markup are lost. The size is reduced by 2-3 times. But the browser can't see the difference. The decompression si not needed at all. I believe this is the best way to compress scripts - compression without compresson. If we need the better ratios then we can compress optimized code with any algorithm - and it is more effective then trying to compres not prepared code. --------------------------------------------------------------------------------------------------------------- [b]var[/b] pleaseVisit=window.open("http://[url]trickyscripter.com[/url]","mySite","")
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »