Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
c32108ee
Commit
c32108ee
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'public/bug24688'
parents
ae4e5b98
e0809ec5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug24688
+3
-0
3 additions, 0 deletions
changes/bug24688
src/common/timers.c
+5
-0
5 additions, 0 deletions
src/common/timers.c
with
8 additions
and
0 deletions
changes/bug24688
0 → 100644
+
3
−
0
View file @
c32108ee
o Minor features (performance, 32-bit):
- Make our timing-wheel code run a tiny bit faster on 32-bit platforms,
by preferring 32-bit math to 64-bit. Closes ticket 24688.
This diff is collapsed.
Click to expand it.
src/common/timers.c
+
5
−
0
View file @
c32108ee
...
...
@@ -64,6 +64,11 @@ struct timeout_cb {
* above TIMEOUT_MAX can also be super-inefficient. Choosing 5 here sets
* timeout_max to 2^30 ticks, or 29 hours with our value for USEC_PER_TICK */
#define WHEEL_NUM 5
#if SIZEOF_VOID_P == 4
/* On 32-bit platforms, we want to override wheel_bit, so that timeout.c will
* use 32-bit math. */
#define WHEEL_BIT 5
#endif
#include
"src/ext/timeouts/timeout.c"
static
struct
timeouts
*
global_timeouts
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment