Files
tor/changes
Nick Mathewson 219c969d7b Use monotime_coarse for transfer times and padding times
Using absolute_msec requires a 64-bit division operation every time
we calculate it, which gets expensive on 32-bit architectures.
Instead, just use the lazy "monotime_coarse_get()" operation, and
don't convert to milliseconds until we absolutely must.

In this case, it seemed fine to use a full monotime_coarse_t rather
than a truncated "stamp" as we did to solve this problem for the
timerstamps in buf_t and packed_cell_t: There are vastly more cells
and buffer chunks than there are channels, and using 16 bytes per
channel in the worst case is not a big deal.

There are still more millisecond operations here than strictly
necessary; let's see any divisions show up in profiles.
2017-12-13 09:46:58 -05:00
..
2017-11-09 09:23:12 -05:00
2017-11-01 13:27:57 -04:00
2017-10-31 12:01:58 -04:00
2017-12-04 14:01:52 -05:00
2017-10-20 11:39:17 -04:00
2017-11-30 08:00:24 -05:00
2017-11-21 13:55:11 -05:00
2017-12-11 16:23:11 -05:00
2017-11-02 10:00:32 -04:00
2017-12-05 19:49:29 -05:00
2017-10-27 10:02:08 -04:00
2017-12-05 12:09:57 -05:00