[tor-bugs] #17321 [CollecTor]: Index to better support downloaders
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Oct 20 20:18:23 UTC 2015
#17321: Index to better support downloaders
-------------------------+--------------------------
Reporter: atagar | Owner: karsten
Type: enhancement | Status: accepted
Priority: High | Milestone:
Component: CollecTor | Version:
Severity: Major | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Sponsor: |
-------------------------+--------------------------
Comment (by atagar):
> I'd guess that most applications would parse the whole thing to memory
anyway before looking at it, and then it should be cheap to just build an
internal map of contents for performance reasons.
You're right that it's not a big whoop either way but essentially it means
applications will be parsing twice:
* Json decode the index. It gives a bunch of lists.
* Read over the decoded document and convert to maps.
If you agree that maps make more sense here then I question if ease of
production is a good reason (it's not making things easier overall - it's
just punting that small bit of work to all users).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17321#comment:14>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list