From: intc_ctor@... (Phil Tomson) Date: 2004-01-10T07:31:38+09:00 Subject: Reducing Ruby's footprint I'm exploring the possibility of including Ruby on a CD as a utility language for installing and checking licenses for other 'real' apps on the CD. Currently, a C++ program is being used for this and it compiles to an 8MB executable. I'm confident that the equivilent utility program written in Ruby would have about 1/4 as much code as the C++ version and it would be a lot easier to quickly change when requirements change, but 10 to 20MB of extra space might be hard to justify. We have the space now, but future releases of the CD will likely get tighter. It looks like a Ruby installation takes up about 60MB on Windows. I'm wondering if it's possible to get that down to 10MB. Of course, I know I can just eliminate a lot of items in the library like FOX and TKlibs (which I don't need), help docs, and ri. That will save a good chunk of space, but it doesn't get me all the way there. When I look in the \bin directory I see a lot more files there than I do on a Linux Ruby install which usually just has the ruby and irb binaries. Of course, I know I can get rid of irb, but I see several dll's in that directory that I would have thought were already available on Windows (msvcrt.dll, for example, why is that there and can I safely get rid of it?). What are the glut32 dlls? There are some other libs in the \lib directory that I'm wondering about as well (especially msvrt-ruby18-static.lib which takes 3MB) - are these there mainly for creating extensions (and thus, I would assume, I can safely live without them)? If anyone else has done something similar please post a list of files/libs, etc that you were able to live without. Thanks. Phil