Skip Menu |

This queue is for tickets about the SQL-Abstract-More CPAN distribution.

Report information
The Basics
Id: 77374
Status: resolved
Priority: 0/
Queue: SQL-Abstract-More

People
Owner: Nobody in particular
Requestors: rsimoes [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Use namespace::sweep/clean instead of namespace::autoclean
From glancing at the source of More.pm, it appears namespace::autoclean it just being used to remove all previously imported functions from %SQL::Abstract::More::. This could be done with namespace::clean or namespace::sweep, avoiding the use of Class::MOP and thus cutting a few dozen miliseconds from SQL::Abstract::More's compilation time.
Le Mar 22 Mai 2012 19:53:49, rsimoes a écrit : Show quoted text
> From glancing at the source of More.pm, it appears
namespace::autoclean Show quoted text
> it just being used to remove all previously imported functions from > %SQL::Abstract::More::. This could be done with namespace::clean or > namespace::sweep, avoiding the use of Class::MOP and thus cutting a
few Show quoted text
> dozen miliseconds from SQL::Abstract::More's compilation time.
Thanks for the tip. Actually I already had some problems with autoclean in DBIx::DataModel, and switched to namespace::clean; but I forgot to do the same in More.pm.
Subject: Re: [rt.cpan.org #77374] Use namespace::sweep/clean instead of namespace::autoclean
Date: Wed, 23 May 2012 22:00:04 +0200
To: bug-SQL-Abstract-More [...] rt.cpan.org
From: laurent dami <laurent.dami [...] free.fr>
Le 23.05.2012 01:53, Richard Simões via RT a écrit : Show quoted text
> This could be done with namespace::clean or > namespace::sweep,
Do you have any advice between those two ? Or is there any comparison / discussion somewhere ? Thanks in advance, Laurent D.
On Wed May 23 15:00:15 2012, laurent.dami@free.fr wrote: Show quoted text
> Le 23.05.2012 01:53, Richard Simões via RT a écrit :
> > This could be done with namespace::clean or > > namespace::sweep,
> Do you have any advice between those two ? Or is there any comparison / > discussion somewhere ? > > Thanks in advance, Laurent D.
namespace::sweep's only advantage over namespace::clean is that ::sweep is safe to use with operator overloading. Otherwise, the two appear identical.
Le Mar 22 Mai 2012 19:53:49, rsimoes a écrit : Show quoted text
> This could be done with namespace::clean
Solved in v1.04, just released to CPAN.