[ https://issues.apache.org/jira/browse/TS-2522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919125#comment-13919125 ]
ASF subversion and git services commented on TS-2522: ----------------------------------------------------- Commit 31792d2aae9519e0feb66ab9e80b1a9d5d51d7de in trafficserver's branch refs/heads/master from [~zwoop] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=31792d2 ] TS-2522 Better hook management, and cleanup This also does - Add support for system wide config directory as default - Better debug messages (textual hook names etc.) - Less overhead on creating TXN hooks > Rewrite header_rewrite hook management > -------------------------------------- > > Key: TS-2522 > URL: https://issues.apache.org/jira/browse/TS-2522 > Project: Traffic Server > Issue Type: Improvement > Components: Plugins > Reporter: Leif Hedstrom > Assignee: Leif Hedstrom > Fix For: 5.0.0 > > > Right now, we use a transaction slot to pass information from "remap" state > over to one of the normal hooks. Because of the way this plugin works, I > think this can be optimized away. What we should do is to have one "global" > continuation for each remap rule, and schedule it from the remap plugin. > This avoids having all the global hooks checking the transaction state (slot) > every time. It's also very cheap to schedule a transaction hook, it's O(1) > simply appending it to a linked list of hooks. If the hook doesn't get > invoked, it's mostly a no-op. > Finally, this avoids consuming one of the limited transaction hooks, and at > the same time reduces overhead by only executing hooks when necessary. -- This message was sent by Atlassian JIRA (v6.2#6252)