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/Classification.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Bugzilla/Classification.pm') diff --git a/Bugzilla/Classification.pm b/Bugzilla/Classification.pm index a931767d2..e34f8dde8 100644 --- a/Bugzilla/Classification.pm +++ b/Bugzilla/Classification.pm @@ -47,6 +47,17 @@ use constant VALIDATORS => { sortkey => \&_check_sortkey, }; +############################### +#### Accessors ###### +############################### + +use Class::XSAccessor { + accessors => { + id => __PACKAGE__->ID_FIELD, + name => __PACKAGE__->NAME_FIELD, + }, +}; + ############################### #### Constructors ##### ############################### -- cgit v1.2.3-24-g4f1b