[ https://issues.apache.org/jira/browse/SOLR-1707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797713#action_12797713 ]
Yonik Seeley commented on SOLR-1707: ------------------------------------ OK, I whipped up a quick test with String keys, many small maps (anywhere from 1 to 20 keys per map). Java6 -server 64 bit, Win7_x64 Size: Collections.unmodifiableMap: 7.4% bigger than HashMap google immutable map: 22.4% bigger than HashMap Speed: Collections.unmodifiableMap: 4.2% slower than HashMap google immutable map: 26.0% slower than HashMap For best space and speed, looks like we should stick with straight HashMap. > Use google collections immutable collections instead of > Collections.unmodifiable** > ---------------------------------------------------------------------------------- > > Key: SOLR-1707 > URL: https://issues.apache.org/jira/browse/SOLR-1707 > Project: Solr > Issue Type: Improvement > Reporter: Noble Paul > Assignee: Noble Paul > Fix For: 1.5 > > Attachments: SOLR-1707.patch > > > google collections offer true immutability and more memory efficiency -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.