We're updating the issue view to help you get more done. 

Contention generated on runtime lookup for @GroupSequence annotation

Description

I'm running a benchmark which is highlighting the following contention point:

1 2 3 4 5 6 7 8 9 10 java.lang.Class.initAnnotationsIfNecessary() java.lang.Class.getAnnotation(Class) org.hibernate.validator.internal.engine.groups.ValidationOrderGenerator.isGroupSequence(Class) org.hibernate.validator.internal.engine.groups.ValidationOrderGenerator.getValidationOrder(Collection) org.hibernate.validator.internal.engine.ValidatorImpl.determineGroupValidationOrder(Class[]) org.hibernate.validator.internal.engine.ValidatorImpl.validate(Object, Class[]) org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate(Object, EntityMode, EntityPersister, SessionFactoryImplementor, GroupsPerOperation$Operation) org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert(PreInsertEvent) org.hibernate.action.internal.EntityInsertAction.preInsert() org.hibernate.action.internal.EntityInsertAction.execute()

I'll send a PR as the fix is trivial.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

4.3.1.Final
5.1.0.Final

Priority

Minor