[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #33090 [Metrics/Library]: Make all Descriptor implementors serializable
#33090: Make all Descriptor implementors serializable
-----------------------------+------------------------------
Reporter: notirl | Owner: metrics-team
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Metrics/Library | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-----------------------------+------------------------------
Comment (by notirl):
It looks like it needs to be not just the Descriptor interface, because
some other interfaces are not subinterfaces of that. We probably would
want to make all our interfaces serializable in metrics-lib.
The only issue I have found is where we use TreeMap because the comparator
in there is an anonymous class that is not serializable. We can override
those comparators with serializable but still anonymous comparators
instead.
I'm able to have consensus objects passed around in Apache Beam now, and
pull out the nickname of every relay in a consensus last month at record
speed.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33090#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs