| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Orkinos

Page history last edited by PBworks 17 years, 9 months ago


 

orkinos - the Ultimate Script Compressor

 

 

What is orkinos?

 

orkinos is a C# application that is used to compress and obsfucate s@rdalya for use in production environment.

 

Due to the AJAX tsunami all around the web is evolving to a fat-client medium, which results in writing more and more JavaScript code applications. orkinos can be used to compress your large JavaScript files to smaller chunks. orkinos achieved 63% compression in s@rdalya's source code.

 

But Server-side GZip Compression does the same thing, or doesn't it?

 

Yes. Actually server-side zipping is far better. However server-side compression algorithms consume too much CPU power. For this reason most hosting firms disable it.

 

Even if you a server only dedicated to you, gzip compression will cause headaches when the load on the server increases (when you are digged or slashdotted or become famous for some other reason).

CPU time is precious and you may want to spare it to other things.

 

Where can I download it?

 

Directly from orkinos' web site

 

Is it free?

 

It is free for uncommercial use.

 

Compressing a single file

 

So you want to compress a single js file?

 

Easy cheesy. Just select the js and press compress button. If your js file is example.js than a compressed version exampled_compressed.js will be created next to it.

 

Adding headers

 

If you want to compress "example.js", you can add a separate custom header to it if you create a file named "example.h" (case is important) and put it into the same directory as "example.js"

 

example.js:



/*some comment*/
function example()
{
	alert("this is an example function");
}

 

 

example.h:

/*
Header file for example.js
copyright: 
1901-2012 (c) Mickey Mouse and associates
 */

 

example_compressed.js

/*
Header file for example.js
copyright: 
1901-2012 (c) Mickey Mouse and associates
 */
/*Code Compressed with orkinos v.2.0.0 - http://www.sarmal.com/orkinos*/eval(function(p,a,c,k,e,d)
{...compressed content goes here...)

 

What is the "_src.js" thingy?

 

If you compress "example.js" an "example_compressed.js" file will be created. However if you compress "example_src.js", it will be compressed into "example.js" instead.

This is a great way to separate production and development files.

 

Moreover you can create an xml file to compress all of your js files in batches.

This is a great time-saver if you have a lot of js files and you want to compress all of them for production.

 

How can I compress files in batches?

 

Yes, you can compress files in batches.

To do this you need to create an xml file with full path information to files. The structure of the XML is simple:

 

<?xml version="1.0" encoding="ISO-8859-9" ?>
<file-list>
	<file>X:/WEBS/example.com/lib/common_src.js</file>
	<file>X:/WEBS/example.com/lib/Houston_src.js</file>
	<file>X:/WEBS/example.com/lib/prerequisites_src.js</file>
	<file>add as many files as you like.</file>
	<file>make sure you enter the full physical path.</file>
</file-list>

 

Select this file and press compress button. All of the files in the list will be compressed consequtively.

 

I have some other question.

 

Then edit this wiki and ask it. It will be answered sooner or later.

Comments (0)

You don't have permission to comment on this page.