From ed53ecda0546d6c639fa3d227a59ace4d57b81a5 Mon Sep 17 00:00:00 2001 From: Upasana Date: Mon, 5 Mar 2018 00:58:41 +0100 Subject: Bug 1273381 - Improve bugzilla object performance by using Class::XSAccessor for object accessors --- Bugzilla/BugUrl.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla/BugUrl.pm') diff --git a/Bugzilla/BugUrl.pm b/Bugzilla/BugUrl.pm index 4724ae71a..9e5750c75 100644 --- a/Bugzilla/BugUrl.pm +++ b/Bugzilla/BugUrl.pm @@ -74,6 +74,13 @@ use constant SUB_CLASSES => qw( #### Accessors ###### ############################### +use Class::XSAccessor { + accessors => { + name => __PACKAGE__->NAME_FIELD, + id => __PACKAGE__->ID_FIELD, + }, +}; + sub class { return $_[0]->{class} } sub bug_id { return $_[0]->{bug_id} } -- cgit v1.2.3-24-g4f1b