Skip to content

Replace futures-timer with a hash-wheel timer #170

Open
@yoshuawuyts

Description

@yoshuawuyts

futures-timer is quite naive in its implementation, and we can probably do better. Something we may want to consider is building a hash-wheel timer impl to replace the existing timer.

mozilla/neqo#127 (http/3 impl) has a relatively small implementation we may want to adopt (200 lines!). Though worth keeping an eye on mozilla/neqo#190, where they're investigating possible other solutions.

Either way I think it's probably worth spinning up our own crate for this, and moving away from futures-timer. I've also gone and reserved the hash-wheel-timer name so we publish after we've built it.

Also if anyone's interested in taking this on feel free to comment below. This is not a high priority, but generally could make for some nice improvements. Thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions