[hibernate-issues] [JIRA] (HHH-14149) Improve efficiency of LazyAttributesMetadata#getLazyAttributeNames

Sanne Grinovero (JIRA) jira at hibernate.atlassian.net
Wed Aug 12 03:34:27 EDT 2020


Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMzgzZTBkYTJjYWI1NDFjMGIzOWI2NjVjNDA0YjI3NGIiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14149?atlOrigin=eyJpIjoiMzgzZTBkYTJjYWI1NDFjMGIzOWI2NjVjNDA0YjI3NGIiLCJwIjoiaiJ9 ) HHH-14149 ( https://hibernate.atlassian.net/browse/HHH-14149?atlOrigin=eyJpIjoiMzgzZTBkYTJjYWI1NDFjMGIzOWI2NjVjNDA0YjI3NGIiLCJwIjoiaiJ9 ) Improve efficiency of LazyAttributesMetadata#getLazyAttributeNames ( https://hibernate.atlassian.net/browse/HHH-14149?atlOrigin=eyJpIjoiMzgzZTBkYTJjYWI1NDFjMGIzOWI2NjVjNDA0YjI3NGIiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) Created: 12/Aug/2020 00:34 AM Fix Versions: 5.4.21 Priority: Minor Reporter: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea )

This allocation of a KeySet view is small but rather hot, and we can take advantage by the fact that the returned Set is never modified.

Ideally we should return a different type which makes the immutability contract explicit, which could unlock further optimisations, but this will need a bit of care as this is currently classified as an SPI.

( https://hibernate.atlassian.net/browse/HHH-14149#add-comment?atlOrigin=eyJpIjoiMzgzZTBkYTJjYWI1NDFjMGIzOWI2NjVjNDA0YjI3NGIiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14149#add-comment?atlOrigin=eyJpIjoiMzgzZTBkYTJjYWI1NDFjMGIzOWI2NjVjNDA0YjI3NGIiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100144- sha1:57e1ab7 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200812/1da3760f/attachment.html 


More information about the hibernate-issues mailing list