From 30084ede70b1f17b620f5bb5d38ccabb3321f5df Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 8 Jul 2010 19:00:31 -0700 Subject: Bug 576670: Optimize Search.pm's "init" method for being called many times in a loop r=glob, a=mkanat --- Bugzilla/Field.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Field.pm') diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm index 26025015a..c0e88fc37 100644 --- a/Bugzilla/Field.pm +++ b/Bugzilla/Field.pm @@ -544,7 +544,7 @@ This method returns C<1> if the field is "abnormal", C<0> otherwise. sub is_abnormal { my $self = shift; - return grep($_ eq $self->name, ABNORMAL_SELECTS) ? 1 : 0; + return ABNORMAL_SELECTS->{$self->name} ? 1 : 0; } sub legal_values { -- cgit v1.2.3-24-g4f1b