Change in ovirt-engine[ovirt-engine-3.5]: restapi: Faster JAXB element creation

tnisan at redhat.com tnisan at redhat.com
Wed Aug 19 08:46:45 UTC 2015


Tal Nisan has submitted this change and it was merged.

Change subject: restapi: Faster JAXB element creation
......................................................................


restapi: Faster JAXB element creation

Currently when we need to create a JAXB element we always iterate the
object factory looking for the appropiate method. To improve the
performance of this lookup this patch introduces an index that is
created during startup so that the iteration is done only once.

Change-Id: Ie6f2cc91701ff45a443d3b8b37e8225d7b26c4fa
Bug-Url: https://bugzilla.redhat.com/1250140
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit d078c564be5e1a620850259571052a76052aaed8)
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/xml/JAXBProvider.java
1 file changed, 19 insertions(+), 13 deletions(-)

Approvals:
  Tal Nisan: Passed CI tests
  Ori Liel: Looks good to me, approved
  Juan Hernandez: Verified



-- 
To view, visit https://gerrit.ovirt.org/44933
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie6f2cc91701ff45a443d3b8b37e8225d7b26c4fa
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list