[infinispan-issues] [JBoss JIRA] Created: (ISPN-479) Reduce use of maps in Hot Rod to increase performance

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Thu Jun 3 10:32:56 EDT 2010


Reduce use of maps in Hot Rod to increase performance
-----------------------------------------------------

                 Key: ISPN-479
                 URL: https://jira.jboss.org/browse/ISPN-479
             Project: Infinispan
          Issue Type: Task
          Components: Cache Server
    Affects Versions: 4.1.0.BETA2
            Reporter: Galder Zamarreno
            Assignee: Galder Zamarreno
             Fix For: 4.1.0.CR1


There's no need for a map to resolve operation codes and flags, simply use a switch. 

1.7% - 95,395 ms - 371,912 inv. org.infinispan.server.hotrod.RequestResolver$.toRequest (line\: 37)
...
1.3% - 71,870 ms - 262,761 inv. scala.Enumeration.apply (line\: 42)

Similar thing for the version specific decoder but in this case, convert Decoder10 into a singleton object to get even more performance since its stateless and you avoid map lookups:

1.9% - 110 s - 404,990 inv. org.infinispan.server.hotrod.HotRodDecoder.getDecoder (line\: 54)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list