On Friday 03 January 2003 05:54 am, James H. Thompson wrote:
> We have a good size PHP libary -- about 370KB of source code.
> Its one class with a multitude of small functions in it.
that's a huge class. is it feasible to split it into smaller classes that
do smaller things?
i only ask. i haven't looked at any includes that are that big. haven't
had to, i don't even use classes, i just have function libraries, each
library file holding only related functions possibly with includes only
for other library files that it needs itself (never including anything just
because something downstream will need it, the downstream should
include its own requirements itself), so i haven't tried to measure the
amount of RAM something like that would eat, although 5MB for 370K
of source does seem excessive, unless you've got complex data
structures in there, or you're storing the all the rows of an SQL query
in an array or something similar (i've seen a lot of that with programmers
i work with, they store entire result sets in arrays to make them easier
to work with, without considering just how much RAM such arrays
would eat if the result sets are large).
tiger
--
Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"
Veritas liberabit vos.
Doveryai no proveryai.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php