You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/01/23 11:33:38 UTC

[jira] [Created] (TS-2522) Rewrite header_rewrite hook management

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)