[ 
https://issues.apache.org/jira/browse/DAFFODIL-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17168251#comment-17168251
 ] 

Mike Beckerle commented on DAFFODIL-1861:
-----------------------------------------

We don't intern the QName objects. They're immutable. There's no reason to ever 
have more than one instance for a given QName. 
Since they are used for lookups at runtime, we should intern them and always 
use the same object instance. 

This may save space, and may improve performance. Whether the improvement is 
measurable is unclear, but it cannot hurt. 

> Investigating if QName interning could speed up HashMap lookups in the Infoset
> ------------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1861
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1861
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>            Reporter: Steve Lawrence
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to