Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOGNhNjVjNmFm...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16214?atlOrigin=eyJpIjoiOGNhNj...
) HHH-16214 (
https://hibernate.atlassian.net/browse/HHH-16214?atlOrigin=eyJpIjoiOGNhNj...
) Improve memory and access efficiency in SqmFunctionRegistry (
https://hibernate.atlassian.net/browse/HHH-16214?atlOrigin=eyJpIjoiOGNhNj...
)
Issue Type: Improvement Assignee: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 21/Feb/2023 07:17 AM Fix Versions: 6.2.0, 6.3.0
Labels: performance Priority: Minor Reporter: Sanne Grinovero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Checking retained memory dumps via Eclipse MAT, I’ve spotted that SqmFunctionRegistry has
an unusually high memory footprint; this seems due to its use of TreeMap instances
internally, which are also known to not perform very well on lookups.
I’m proposing to replace these maps with a ConcurrentHashMap wrapper which retains the
same semantics as the current TreeMap: case-insensitive access, and a logging capability
which logs all registered functions in stable order.
(
https://hibernate.atlassian.net/browse/HHH-16214#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16214#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100216- sha1:3fa9804 )