At 16:39 23/04/02 -0300, Manuel Lemos wrote:
Because the built-in validation types just contain 2 lines and it does not
pay to move them to separate classes.
I was thinking of bigger validation routines going into separate classes,
such as the Luhn algorithm for credit card validation.
You should learn how Zend compiler and PHP code loading and execution
works before making such guesses.
Very, true, only I don't know how to learn about these things :-)
Zend compiler separates compilations in 3 parts: global code, global
functions and classes. If you move code from a class to create another
with separated validation code, eventually you force a separate
compilation process for that class with all the execution and memory
overhead that incurs.
Wouldn't using PHP-Accelerator get around this problem?
Peter
--
Maple Design - quality web design and programming
http://www.mapledesign.co.uk
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|