question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cythonised protocol implementation

See original GitHub issue

Provide a cythonised version of the httptools protocol implementation.

May also want to drop header lowercasing (they should already be) and provide dict-like objects for the known message types.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
tomchristiecommented, Jun 29, 2018

Not that I especially want to do this, but we need to bash folks over the head with fast ASGI implementations, because it’s important for making the case. 💥😎

0reactions
tomchristiecommented, Oct 11, 2018

If we’re talking about performance in general it’s probably the only reason

Throughput performance is the most obvious driver, yes, but not the only one. There’s a whole bunch of stuff that it makes possible that you can’t really do in a thread-blocking context. WebSocket Support, Server Sent Events, In-process background tasks. etc.

What the next steps we can make it this direction?

All we need to start with is a package that includes a cythonised protocol class.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing the buffer protocol - Cython's Documentation
Cython objects can expose memory buffers to Python code by implementing the “buffer protocol”. This chapter shows how to implement the protocol and...
Read more >
Boosting Python Scripts With Cython
In CPython, everything is implemented in C. There is no way to escape the C complexity in coding. This is why many developers...
Read more >
Accelerating Python on GPUs with nvc++ and Cython
From a programming standpoint, the Jacobi method can be implemented in C++ using the standard library algorithms std::for_each for performing ...
Read more >
Cython buffer protocol: how to retrieve data?
cimport numpy as CNY # Cython buffer protocol implementation for my array class cdef class P_NpArray: cdef CNY.ndarray npy_ar def ...
Read more >
Uvicorn
It is implemented in Cython. ... Create an application, in example.py : ... and the messages expected by receive and send depend on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found