forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: reduce calling into Mono_Time in DHT
Mono_Time needs to acquire a lock each time one of its functions are used. This becomes very costly in the DHT code where timeouts for all connected nodes are recalculated. Improve this by caching the timestamp at the begin of a do_dht() iteration.
- Loading branch information
Showing
1 changed file
with
48 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters