3 ms·
You can probably find a user space TCP implementation that you can use with LD_PRELOAD. In this case you wouldn't need to do anything to make your app use it.
by nicolaslem 6y ago
You can probably find a user space TCP implementation that you can use with LD_PRELOAD. In this case you wouldn't need to do anything to make your app use it.
If instead you want a networking stack written in Python,
for WSGI based frameworks like Flask it is enough to write a WSGI server that instead of using the `socket` module uses your custom stack. It will be compatible with the vast majority of Python web apps thanks to WSGI.
That being said it's very unlikely that you will notice any performance improvement. In the case of a networking stack written in Python it would even be way worse than the kernel implementation.