in reply to Re: Re: CGI made me bloated
in thread CGI made me bloated
Personally, I cut and paste 20 to 50 lines out of CGI.pm that I actually use into my CGIs, and leave the rest where it belongs... in a library on the disk, rather than parsed and compiled into my RAM. (even parts that aren't compiled take up cache space, to get started, so there is no way around extra resources being gobbled)
But then, I'm not using it for HTML generation. I use HTML for that... along with HTML::Template of course. For people writing a CGI, most of CGI.pm is bloat, unless we've forgotten what "CGI" means. I think 90% of it should be split off into something like HTML.pm. Of course, momentum is going to prevent that, which is why I cut and paste a few functions... muchly that means the encoding and decoding functions...
The good news is, since we should usually be using mod_perl anyways, Apache.pm doesn't suffer bloat in the same way.
--
Snazzy tagline here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: CGI made me bloated
by rom_de_plume (Acolyte) on Oct 31, 2001 at 09:25 UTC |