diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-09 04:00:31 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-09 04:00:31 +0200 |
commit | 30084ede70b1f17b620f5bb5d38ccabb3321f5df (patch) | |
tree | e55efb88fa4db408220e73d0279702ed35af7403 /xt/lib/Bugzilla/Test | |
parent | 3f40ba04a7bdea2f3f84202006cc55054d647afb (diff) | |
download | bugzilla-30084ede70b1f17b620f5bb5d38ccabb3321f5df.tar.gz bugzilla-30084ede70b1f17b620f5bb5d38ccabb3321f5df.tar.xz |
Bug 576670: Optimize Search.pm's "init" method for being called many times
in a loop
r=glob, a=mkanat
Diffstat (limited to 'xt/lib/Bugzilla/Test')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xt/lib/Bugzilla/Test/Search.pm b/xt/lib/Bugzilla/Test/Search.pm index af595e373..87df927ca 100644 --- a/xt/lib/Bugzilla/Test/Search.pm +++ b/xt/lib/Bugzilla/Test/Search.pm @@ -147,7 +147,7 @@ sub all_fields { my $self = shift; if (not $self->{all_fields}) { $self->_create_custom_fields(); - my @fields = Bugzilla->get_fields; + my @fields = @{ Bugzilla->fields }; @fields = sort { $a->name cmp $b->name } @fields; $self->{all_fields} = \@fields; } |