Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add some code for future benchmarking (not tested yet)
  • Loading branch information
Chris Fields committed Feb 26, 2012
1 parent f4591f1 commit 2c889e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Biome/Factory/FTLocationFactory.pm
Expand Up @@ -33,9 +33,12 @@ my %OPS = map { $_ => 1 } qw(join order bond complement);
{
# TODO: benchmark caching the class and default strand vs simple att call

my ($LOC_CLASS, $DEF_STR);

sub BUILD {
my ($self) = @_;
$self->load_modules($self->locatable_class);
($LOC_CLASS, $DEF_STR) = ($self->locatable_class, $self->default_string);
}

sub from_string {
Expand Down

0 comments on commit 2c889e7

Please sign in to comment.