I haven’t been able to find the answer to my question by Googling,
possibly because “gzip” is everywhere on the web.
The context of my question is: deploying a Ruby on Rails application
onto a system with limited (flash) storage. I am aware of the various
compressed filesystems available, but I’m considering other
Is it possible to deploy a Rails application with all/some of it’s
source .rb, .rhtml, .css and .js files gzipped to save space?
e.g. If foo.rb can’t be found, foo.rb.gz should be read instead. So
long as the .rb and .rhtml files do need to be accessed randomly,
there should be no need to gunzip the file in place.
These are text files, so 3:1 compression may be possible.
I have a feeling (as functions are first class objects in Ruby) that
it may be possible to redefine a few IO functions to achieve this.
Any hints would be welcome.