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

Re: [tor-bugs] #14011 [Stem]: Implement lazy parsing for stem



#14011: Implement lazy parsing for stem
-----------------------------+--------------------------------
     Reporter:  phw          |      Owner:  phw
         Type:  enhancement  |     Status:  new
     Priority:  major        |  Milestone:
    Component:  Stem         |    Version:
   Resolution:               |   Keywords:  descriptor, zoossh
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------------

Comment (by phw):

 Not directly relevant for this ticket but FYI: I also implemented lazy
 parsing for zoossh over the last two days and here are the performance
 numbers (the tests with an "L" in the name did lazy parsing):

 {{{
 BenchmarkConsensusParsing                       121986572 ns/op
 BenchmarkLConsensusParsing                       58939870 ns/op
 BenchmarkConsensusParsingAndGetting             122703967 ns/op
 BenchmarkLConsensusParsingAndGetting            139462761 ns/op
 BenchmarkDescriptorParsing                       27764446 ns/op
 BenchmarkLDescriptorParsing                      16322695 ns/op
 BenchmarkDescriptorParsingAndGetting             27638051 ns/op
 BenchmarkLDescriptorParsingAndGetting            37836873 ns/op
 }}}
 As expected, lazy parsing is much faster when the content of router
 statuses or descriptors is not accessed.  However, when the content of
 ''all'' statuses/descriptors is accessed, lazy parsing is slower as it
 involves more overhead.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14011#comment:3>
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