[tor-bugs] #13774 [Stem]: Mention pickling in "Mirror Mirror on the Wall"?

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Nov 18 01:04:36 UTC 2014


#13774: Mention pickling in "Mirror Mirror on the Wall"?
-----------------------------+----------------------------------------
     Reporter:  mmcc         |      Owner:  atagar
         Type:  enhancement  |     Status:  new
     Priority:  trivial      |  Milestone:
    Component:  Stem         |    Version:
   Resolution:               |   Keywords:  Stem, Python, pickle, docs
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+----------------------------------------

Comment (by mmcc):

 Hi, atagar. I was under the impression that Tor clients don't download
 full descriptors anymore, right? I was just thinking of a dead simple way
 to store all descriptors at once if they're going to be used repeatedly in
 a script that can use data that's a few minutes/hours old. Especially with
 dynamic languages like Python, one often ends up running scripts a bunch
 of times, and it would be too bad if people were downloading >6 MB of
 descriptor every time they tested something.

 I wasn't aware of how versatile `parse_file()` is, though. That's probably
 the best solution.

 Would it be worth it to briefly mention the ability to store the result of
 the download using `parse_file()` in the `DescriptorDownloader` section?
 It's definitely not a big deal either way.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13774#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list