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

Noble Paul commented on SOLR-12959:
-----------------------------------

Perf runs runs using the various Map like containers
* NamedList
* HashMap
* LinkedHashMap
* FastOrderedMap : This is a new container backed by a NamedList but lookups 
are done using a lazily created <int,int> map. The map is constructed only if a 
key based lookup is performed

{code}
TOTAL_KEYS : 1000
TOTAL_OBJS : 10000
TOTAL_LOOKUPS : 1000000
---------------------------------------
ram usage KB FASTORDEREDMAP: 108969
time taken FOM: 222
---------------------------------------
LinkedHashMap ram usage KB: 471371
time taken LINKEDMAP: 210
---------------------------------------
HASHMAP ram usage KB: 393179
time taken HASHMAP: 207
---------------------------------------
ram usage KB NL: 109039
time taken NamedList: 3022

=====================================================
TOTAL_KEYS : 100
TOTAL_OBJS : 10000
TOTAL_LOOKUPS : 1000000
---------------------------------------
ram usage KB NL: 9844
time taken NamedList: 493
---------------------------------------
LinkedHashMap ram usage KB: 49809
time taken LINKEDMAP: 187
---------------------------------------
HASHMAP ram usage KB: 41929
time taken HASHMAP: 185
---------------------------------------
ram usage KB FASTORDEREDMAP: 10368
time taken FOM: 205

{code}


> Deprecate solrj SimpleOrderedMap
> --------------------------------
>
>                 Key: SOLR-12959
>                 URL: https://issues.apache.org/jira/browse/SOLR-12959
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>            Reporter: Noble Paul
>            Priority: Minor
>
> There is no difference between a NamedList and a  SumpleOrderedMap. It 
> doesn't help to have both of them when they are doing exactly free same things



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to