Re: Re: Validation class comments

From: Date: Wed, 29 May 2002 18:14:57 +0000
Subject: Re: Re: Validation class comments
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6621@lists.php.net to get a copy of this message
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

« previous php.pear.dev (#6621) next »