Small optimisation for how LazyAttributeLoadingInterceptor is dealing with lazy fields
Description
The lazyFields field in the interceptor is being wrapped unnecessary in a collection helper, which is making the lookup operations more expensive than what they should be, especially for the particular case of this being an empty set.
By changing approach we can save a bit of memory as well.
The
lazyFields
field in the interceptor is being wrapped unnecessary in a collection helper, which is making the lookup operations more expensive than what they should be, especially for the particular case of this being an empty set.By changing approach we can save a bit of memory as well.