On Feb 17, 2008 2:04 PM, Sam Tregar <[EMAIL PROTECTED]> wrote: > Params::Validate is pretty fast, in my experience. Could I win you over > with a patch and some benchmarks showing no significant performance > degradation?
Maybe, but as I've said I'm not really a fan of runtime parameter validation. Doing it in just one place may have a minimal impact, but then the question becomes, why isn't it done everywhere? (Doing it everywhere adds significant overhead, both in terms of runtime cost and code bulk.) Do we add it on a per-request basis every time someone mistypes a parameter name? It's quite a sinkhole, IMO, which is why I do it nowhere: it's the egalitarian approach ;) > Speaking of, where would I get bench.pl from > http://rose.sourceforge.net/wiki/index.php/RDBO/Benchmark? It's included in the Rose::DB::Object distribution: http://search.cpan.org/src/JSIRACUSA/Rose-DB-Object-0.767/t/benchmarks/ -John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object