[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: 141: exit policy summary



On Mon, 11 Aug 2008, Peter Palfrader wrote:

>   An exit policy summary will be included in votes and consensus as a
>   new line attached to each exit node.  A lack of policy should indicate
>   a non-exit policy.  The line will have the format
>    "p" <space> "accept"|"reject" <portlist>
>   where portlist is a comma seperated list of single port numbers or
>   portranges (e.g.  "22,80-88,1024-6000,6667").  Whether the summary
>   shows the list of accepted ports or the list of rejected ports depends
>   on which list is shorter (has less elements).  In case of ties we
                                 s/less elements/a shorter string representation/
>   choose the list of accepted ports.


-rw-r--r--  1 weasel weasel 462899 Aug 12 00:56 cons-accept
-rw-r--r--  1 weasel weasel 432127 Aug 12 00:56 cons-reject
-rw-r--r--  1 weasel weasel 423023 Aug 12 00:56 cons-shorter
-rw-r--r--  1 weasel weasel 331860 Aug 12 00:48 consensus

It turns out that always using accept is significantly larger than
always using reject lines.  Of course always using the shorter one is
even better.

-rw-r--r--  1 weasel weasel 154109 Aug 12 00:56 cons-accept.gz
-rw-r--r--  1 weasel weasel 153364 Aug 12 00:56 cons-reject.gz
-rw-r--r--  1 weasel weasel 152669 Aug 12 00:56 cons-shorter.gz
-rw-r--r--  1 weasel weasel 146360 Aug 12 00:48 consensus.gz

However, when compressed it makes almost no difference anymore.

I'd still go for "shorter string representation", even if only because
it usually is nicer to read to the human.

Does anybody else have an opinion on that?
-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/