[
https://issues.apache.org/jira/browse/TS-2522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leif Hedstrom reassigned TS-2522:
---------------------------------
Assignee: Leif Hedstrom
> 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.1.5#6160)