On Feb 14, 2008 8:04 PM, John Siracusa <[EMAIL PROTECTED]> wrote:

>
> Perl 5 doesn't have any language features for validating named
> parameters, and doing so "manually" at runtime is (relatively)
> expensive.  This is especially true for Manager methods which take a
> ton of parameters (and still growing).
>

Params::Validate is pretty fast, in my experience.  Could I win you over
with a patch and some benchmarks showing no significant performance
degradation?   (Speaking of, where would I get bench.pl from
http://rose.sourceforge.net/wiki/index.php/RDBO/Benchmark?)


> Finally, if you're really concerned, keep in mind that you can always
> make your own Manager subclass that does check args, then have all
> your real Manager classes inherit from it instead of inheriting form
> Rose::DB::Object::Manager directly.
>

Sure, I could do that.  Is it safe to assume that this problem exists for
more than just ::Managaer?

-sam
-------------------------------------------------------------------------
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

Reply via email to