Skip to content

perf(rt): use native async for context management#511

Merged
0x676e67 merged 1 commit intomainfrom
perf
Feb 12, 2026
Merged

perf(rt): use native async for context management#511
0x676e67 merged 1 commit intomainfrom
perf

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

No description provided.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 12, 2026

Deploying rnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 48faf3b
Status: ✅  Deploy successful!
Preview URL: https://a7043850.rnet-7tt.pages.dev
Branch Preview URL: https://perf.rnet-7tt.pages.dev

View logs

@gemini-code-assist

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the asynchronous context management (__aenter__/__aexit__) to use native async functions provided by pyo3. This is a great improvement as it simplifies the code, makes it more idiomatic, and should improve performance by reducing overhead. The AllowThreads utility has also been aptly renamed to NoGIL to better reflect its function of releasing the Global Interpreter Lock. The changes are consistent across the codebase. I've left one minor suggestion for code simplification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant