Vizonex / Vizonex/Winloop

Optimizing asyncio.Future by writing a cdef class extension of it.

Open
#80 0 comments 0 reactions 1 assignee View on GitHub

@Vizonex is already working on this.

Since Sep 25, 2025.

deviates-from-uvloop enhancement internal-refactoring
Dominant language
Python
Stars
231
Forks
24
Avg merge
2d 5h
Merged PRs (30d)
3

Description

I was looking at a few things that could be improved and one of them was internal objects that aren't interacted with all that much and that would be asyncio.Future I was thinking about writing a object based on the pure python version since the C version is primarly a reflection of it.

And since isfuture() is meant for checking if an object is a future instead of isinstance(fut, asyncio.Future) which should be discouraged to begin with so I think we can get away with it as long as we do what was done within The Handle and TimerHandle objects that were currently using where initializing winloop.Future throws an error. I'll possibly look into optimizing task objects as well in the future if this idea succeeds.

I think I could do a pull request on uvloop's side also if this succeeds at this as well.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.