[tor-bugs] #25927 [Core Tor/Tor]: Remove the need for gettimeofday_cached(); use monotonic time in ewma code (was: Refactor approx_time(); remove the need for gettimeofday_cached().)

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Apr 26 15:59:36 UTC 2018


#25927: Remove the need for gettimeofday_cached(); use monotonic time in ewma code
-------------------------------------------------+-------------------------
 Reporter:  nickm                                |          Owner:  nickm
     Type:  defect                               |         Status:
                                                 |  assigned
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.4.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  034-roadmap-subtask,                 |  Actual Points:
  034-triage-20180328, 034-included-20180328     |
Parent ID:  #25375                               |         Points:
 Reviewer:                                       |        Sponsor:
                                                 |  Sponsor8
-------------------------------------------------+-------------------------
Description changed by nickm:

Old description:

> approx_time() should be done the way we currently do
> gettimeofday_cached().  gettimeofday_cached() should be removed entirely.
>
> This will improve our performance a little, and improve our code a lot.

New description:

 approx_time() should be done the way we currently do
 gettimeofday_cached().  gettimeofday_cached() should be removed entirely.

 This will improve our performance a little, and improve our code a lot.

 ''edited: this ticket is now only about gettimeofday_cached();
 approx_time() will take a different ticket.''

--

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


More information about the tor-bugs mailing list