procmail
[Top] [All Lists]

Re: Thoughts on speed-up?

1999-12-02 21:09:38
From: Philip Guenther <guenther(_at_)gac(_dot_)edu>

The following will be faster, though it has ever so slightly different
semantics:

      :0
      * ^TO_\/(listone|second|third|fourth)
              {
              :0
              * MATCH ?? ^^listone
              listone

              :0
              * MATCH ?? ^^second
              second

              :0
              * MATCH ?? ^^third
              third

              :0
              * MATCH ?? ^^fourth
              fourth
              }


How about:

        :0
        * ^TO_\/(listone|second|third|fourth)
                {
                :0
                * MATCH ?? ^^listone
                listone
 
                :0
                * MATCH ?? ^^second
                second
 
                :0
                * MATCH ?? ^^third
                third
 
                :0
                fourth
                }
 

-- 
    \     .-.     .-.     .-.     .-.     .-.     .-.     .-.     /
     \-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
      '-'     '-'     '-'     '-'     '-'     '-'     '-'     '-'

<Prev in Thread] Current Thread [Next in Thread>