Thursday, September 21, 2006

Applet revival: JGraphpad CE BLACKJAX applet size cut from 450K down to 110K thanks to Pack200!

Pack200 is an underestimated widely deployed java tool to speed up dramatically the download time of applets or webstart applications.

I was already aware of an other 'BLACKJAX' like applet deploying Apache Derby on the client. Then I heard its creator claimed he cut Derby from 2Mb down to 600kb using Pack200..

So Pack200 is a class compressing/deflating tool deployed along with the JRE since version 1.5 (Tiger). How it works: in short applets and webstart apps are still requesting a jar archive on the server. But on the server side, you catch the fact the a different encoding (pack200-gzip) is requested by java 1.5+ clients. When requested, you'll then return the "packed" jar version, else (JRE prior to 1.5) you'll return the normal jar archive. JRE 1.5+ webstart and applet clients will deflate the packed archive on the fly saving a huge amount of server load and bandwidth.

Of course, this transfer win is only worth the CPU overhead on the client side if your archive was large enough. Make your benchmark.

Results are here:
So what about JGraphpad Community Edition? Without plugins (but with JGraph) - that's configured as the minimal online diagram editor - JGraphpad CE is weighting about 450K. Pack200 cut down the archive to 110K which is a very big win! Frankly I didn't benchmarked the extra overhead against the transfer win, but overall the win is HUGE! Overall, the applet startups 3 times faster!

So, yes it means that JGraphpad CE which is by far a more complex app than TinyMCE or FCKEditor which are 'only' online word processors, is still something 2 times smaller to download!!! (And with our "Javascript sugar", it starts up just as fast). Really amazing.

Now consider that JGraphpad CE is architectured so that you can download some plugins in the background (until you really need them) while diagramming with the core JGraph application, it turns JGraphpad CE really credible for diagram online edition.

Limits: JGraphpad CE require java 1.4.2 at least to run. But with java 1.4.2 you'll have to download the classic jar (it's totally transparent however). Only happy java 1.5 and 1.6 users will get their first download time boosted thanks to the Pack200 compression.

Server Side details:

JGraphpad CE has been designed to be server side agnostic. It only two use standard GET and POST HTTP methods to download/upload a diagram from the server. So you can use what you want to handle your uploads. I personally use Python within the MoinMoin wiki (normal file upload feature), but you could use Java, PHP or Ruby, no problem.

Still getting the Pack200 trick properly configured is server side dependent. It's easy to find out how to do with a Java server.

For an Apache server, the trick is really easy, it's explained in that excellent article.

Finally, if you can't o don't want to bother with Pack200, just put the jar in the root of the applet codebase directory as usual and this will work.

I'll soon provide a bunch of official documentation about that new JGraphpad CE release. Don't hesitate to send your feedback.

8 comments:

weidenrinde said...

Hi Raphael,
wiki.visualmodeller.org seems to be gone. Is there still some documentation forthe jgraphpad for moinmoin project?

Raphaël Valyi said...

Hi weidenrinde,

yep weidenrinde, I'm very sorry, I had really hard times at coding my new site (www.livetribune.com) and my hosting for visualmodeller just got overdue. I didn't had much time to put it back. I'll do it soon hopefully. If not please remind me I could eventually send you the wiki tarball. Sorry for the trouble.

Raph.

Anonymous said...

[u][b]Xrumer[/b][/u]

[b]Xrumer SEO Professionals

As Xrumer experts, we have been using [url=http://www.xrumer-seo.com]Xrumer[/url] fitted a large time things being what they are and grasp how to harness the massive power of Xrumer and adapt it into a Spondulix machine.

We also purvey the cheapest prices on the market. Many competitors see fit cost 2x or temperate 3x and a lot of the time 5x what we responsibility you. But we feel in providing gigantic accommodation at a tearful affordable rate. The large incidental of purchasing Xrumer blasts is because it is a cheaper surrogate to buying Xrumer. So we aim to support that mental activity in recollection and outfit you with the cheapest standing possible.

Not simply do we cause the greatest prices but our turnaround time payment your Xrumer posting is super fast. We intention pull someone's leg your posting done in the forefront you know it.

We also outfit you with a roundish log of loaded posts on contrasting forums. So that you can notice seeking yourself the power of Xrumer and how we be struck by harnessed it to benefit your site.[/b]


[b]Search Engine Optimization

Using Xrumer you can wish to see thousands upon thousands of backlinks over the extent of your site. Many of the forums that your Place you intent be posted on have high PageRank. Having your join on these sites can truly expropriate found up some top-grade dignity back links and as a matter of fact aid your Alexa Rating and Google PageRank rating utterly the roof.

This is making your put more and more popular. And with this better in popularity as familiarly as PageRank you can envisage to witness your site definitely superiority high-pitched in those Search Motor Results.
Transport

The amount of see trade that can be obtained nearby harnessing the power of Xrumer is enormous. You are publishing your site to tens of thousands of forums. With our higher packages you may still be publishing your site to HUNDREDS of THOUSANDS of forums. Create 1 collection on a in demand forum last will and testament by rig out 1000 or so views, with announce ' 100 of those people visiting your site. Modern assume tens of thousands of posts on in demand forums all getting 1000 views each. Your traffic ordain associate through the roof.

These are all targeted visitors that are interested or bizarre about your site. Envision how divers sales or leads you can execute with this colossal gang of targeted visitors. You are in fact stumbling upon a goldmine ready to be picked and profited from.

Remember, Traffic is Money.
[/b]

GET YOUR CHEAP DEFAME TODAY:


http://www.xrumer-seo.com

Anonymous said...

Predilection casinos? thrust this advanced [url=http://www.realcazinoz.com]casino[/url] steersman and in online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also dilly-dallying our redesigned [url=http://freecasinogames2010.webs.com]casino[/url] muff barely manage by way of at http://freecasinogames2010.webs.com and restore in sanctioned fabulously touched in the skull !
another late-model [url=http://www.ttittancasino.com]casino spiele[/url] locality is www.ttittancasino.com , in profit german gamblers, rate unstinting online casino bonus.

Anonymous said...

Someone deleted several links from mirrorcreator and depositfiles servers.

From now, we will use www.tinyurlalternative.com as our default [url=http://www.tinyurlalternative.com]url shortener[/url], so every link will be there and visible for everyone.

You can choose from several great [url=http://kfc.ms]short url[/url] address like:

kfc.ms easysharelink.info jumpme.info megauploadlink.info megavideolink.info mygamelink.info myrapidsharelink.info mytorrentlink.info myurlshortener.com mywarezlink.info urlredirect.info urlshrinker.info weblinkshortener.com youtubelink.info and many others.

They maintain over 60 different available domains and the [url=http://myurlshortener.com]url shortener[/url] service work well for free without any registration needed.

So we assume it is good notion and propose you to use [url=http://urlredirect.info]url redirect[/url] service too!

Thank you.

buy accutane said...

Multum information has been compiled for use by healthcare practitioners and consumers in buy accutane the United States and therefore Multum does not warrant that uses outside of the United States. Multum does

Anonymous said...

Hi all,
I found very good source of finding dofollow high parerank backlinks. Even from real PR10.
I cant imagine value of a real pr10.

I would like to share with you all about how i succeded to rank on 1st page on google.
prseo@hotmail.com
http://Www.playhitmusics.com

generic viagra said...

Nice work very professional weblog!!
buy viagra
viagra online
thanks for sharing!!!