[ https://issues.apache.org/jira/browse/TS-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833229#action_12833229 ]
Leif Hedstrom commented on TS-87: --------------------------------- This is the remap.config I used, the records.config is pretty much default ATS records.config, with port changed to 8080, and 16MB RAM cache (and a disk cache in storage.config, of course). ap http://loki.ogre.com/ycs1 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs2 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs3 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs4 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs5 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs6 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs7 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs8 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs9 http://l.yimg.com/a/lib/ycs map http://loki.ogre.com/ycs http://l.yimg.com/a/lib/ycs The test just hits these URLs, running for about an hour crashes on my box. Note that this is 100% cache hits. > Performance improvement: Avoid linear search in remap code > ---------------------------------------------------------- > > Key: TS-87 > URL: https://issues.apache.org/jira/browse/TS-87 > Project: Traffic Server > Issue Type: Improvement > Components: Core > Reporter: Manjesh Nilange > Assignee: Leif Hedstrom > Priority: Minor > Fix For: 2.0.0a > > Attachments: trie.patch > > > Currently, the remap code stores all the remap rules in a hash table keyed by > the host field of the "from URL" of the rule. Entries with the same host > field are chained in a linked list. When looking for a mapping, the code has > to do a linear traversal of this list, based on the path of the incoming > request to find a matching rule. This performance should be improved as > overhead can be substantial in cases where there are hundreds of the entries > for the same host. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.