Leif Hedstrom created TS-2522:
---------------------------------

             Summary: 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


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)

Reply via email to