Opened 8 months ago

Last modified 6 weeks ago

#24680 new enhancement

Make tor binary smaller by reducing the size of the fallback list strings

Reported by: teor Owned by:
Priority: Medium Milestone:
Component: Core Tor/Fallback Scripts Version:
Severity: Normal Keywords: ideas binary-size
Cc: Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor: Sponsor8-can

Description

We could make the following strings shorter:

  • orport
  • id
  • ipv6
  • weight

This has a minor readability impact. This also makes it harder to unify this code with the directory authority code.

We could encode the id as base64, but I think we'd need atlas support for that first. And it interferes with readability/searchability for operators.

We could teach Tor that the default fallback weight is N (N=9,10?), and then remove the weights.

Child Tickets

Change History (5)

comment:1 in reply to:  description Changed 8 months ago by teor

Replying to teor:

...
We could teach Tor that the default fallback weight is N (N=9,10?), and then remove the weights.

This is done in #24679.

comment:2 Changed 8 months ago by nickm

This seems like a case for compression.

comment:3 Changed 8 months ago by nickm

[But is this actually helpful? fallback_dirs.inc is less than 1% of the final binary size, if I'm counting right]

comment:4 Changed 8 months ago by teor

I don't think it's worth optimising at the moment.

It might be worth optimising if we follow the original proposal, and choose 20% of guards as fallbacks (~500 entries). Or if the network grows dramatically, and we add more fallbacks.

comment:5 Changed 6 weeks ago by teor

Cc: teor@… removed

Remove useless CC

Note: See TracTickets for help on using tickets.