Dylan has asked for the wisdom of the Perl Monks concerning the following question:
It is called The Manifold Engine, and it does many things, and will someday do *everything* for my web site. Mainly, it parses and 'compiles' my pages. (Manifold: having many forms or features) It gives no error messages now, with -W and use strict, and is nice to work with. some of things it does are: SSI's, custom tags like <@TAG@> could equal "The chickens, they scare the children", and I have 'Commands', like <$randomquote$=1$> that returns a random quote. See, it is the entire site, like index.pl, I guess. page=pagename, or form=login, etc.
What I want to know is, is there anyway to make such a insanely large thing (400 lines, I think) run faster? I've not had to put any load on it, only me testing it, and it takes only 2 secs longer than a static html page of exact same size.
I *have* tried to do this myself, by the way. it has many 'modes' (colors), and instead of "if mode is this, do this, elsif this, do that" etc, I did this:
Also, I am going to use MySQL instead of plain text files, for larger amounts of data (news boards, downloads, fun things), and my server will be using mod_perl, soon. I've used most of the ideas (all?) from the Camel partaining to speed. Also, I would like to know if this All In One Perl CGI, is a bad idea.. Is it the work of a mad man?if (defined($params{modes}->{$mode})) { $params{modes}->{$mode}->(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Speed, and my sanity.
by chromatic (Archbishop) on Aug 26, 2001 at 10:09 UTC | |
by Dylan (Monk) on Aug 26, 2001 at 10:32 UTC | |
by btrott (Parson) on Aug 26, 2001 at 11:39 UTC | |
by Dylan (Monk) on Aug 26, 2001 at 21:42 UTC | |
by btrott (Parson) on Aug 26, 2001 at 22:19 UTC | |
by Dylan (Monk) on Aug 26, 2001 at 10:34 UTC | |
|
Re: Speed, and my sanity.
by mugwumpjism (Hermit) on Aug 26, 2001 at 14:04 UTC | |
|
Re: Speed, and my sanity.
by perrin (Chancellor) on Aug 26, 2001 at 23:01 UTC | |
by Dylan (Monk) on Aug 27, 2001 at 00:03 UTC | |
by mugwumpjism (Hermit) on Aug 27, 2001 at 04:00 UTC | |
by tilly (Archbishop) on Aug 27, 2001 at 19:42 UTC | |
by mugwumpjism (Hermit) on Aug 27, 2001 at 22:27 UTC | |
by MeowChow (Vicar) on Aug 28, 2001 at 01:24 UTC | |
| |
by tilly (Archbishop) on Aug 28, 2001 at 22:49 UTC | |
by blakem (Monsignor) on Aug 27, 2001 at 14:45 UTC | |
by mugwumpjism (Hermit) on Aug 27, 2001 at 17:27 UTC | |
by perrin (Chancellor) on Aug 27, 2001 at 19:31 UTC | |
by tilly (Archbishop) on Aug 27, 2001 at 20:01 UTC | |
| |
| |
|
Re: Speed, and my sanity.
by Dylan (Monk) on Sep 06, 2001 at 10:10 UTC |