Avoid allocation of empty vararg arrays for reflective invocations without parameters

Description

The reflective helper

, which is quite hot in various code points across Hibernate to read the value from getter methods, has the invoker implicitly allocate an empty array to be passed to the vararg supporting argument when there are no arguments.

In most cases we'll invoke these helpers without expecting any argument, so it's worth adding an overloaded method which optimises for the common use case.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Participants

Sanne Grinovero

Fix versions

Affects versions

Priority

Created November 23, 2015 at 11:39 AM
Updated October 21, 2024 at 7:29 AM
Resolved November 23, 2015 at 12:22 PM