Re: Validate package
| From: | Lukas Smith | Date: | Fri, 05 Nov 2004 08:05:52 +0000 |
| Subject: | Re: Validate package | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-34209@lists.php.net to get a copy of this message | ||
Norbert Mocsnik wrote:
Hi devs, Did anyone ever think of splitting the Validate package into multiple files to avoid including 700+ lines of code with 10+ functions when only validating a string or e-mail address? Are there any drawbacks of splitting it (besides a possible BC-break?)Yes there is the problem if file I/O. Its quite expensive. AFAIK its still a significant cost if you use the bytecode cache. However the 700 lines are a non-issues if you use a bytecode cache. regards, Lukas