proxy.py/proxy/common
Abhinav Singh 921f2b56e0
Optimizations & Update Benchmark Results (#832)
* Bail out of lock earlier

* Avoid calling `get_events` for unfinished work tasks.  Use `cached_property` for `HttpParser` optimization

* Add `type: ignore[no-any-return]`, odd scenario

* We dont have to rebuild response packet repeatedly within `WebServerPlugin`

* Parse line and header in one invocation

* Minor optimizations and update benchmark to use `oha` instead of `hey`

* Remove `flask` from benchmark, only benchmark `asgi` or `async` based libraries.  Use `uvicorn` and 10 workers for `blacksheep`.  Use `oha` instead of `hey`

* Add benchmark for `starlette`

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add missing dep

* pre-commit

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-01 04:18:49 +05:30
..
.gitignore Switch versioning to be SCM-based (#715) 2021-11-14 02:46:07 +05:30
__init__.py Add initial Sphinx docs 2021-11-18 01:36:13 +01:00
_compat.py Async `get_events`, `handle_event`, `handle_readables`, `handle_writables` (#769) 2021-11-23 15:02:00 +05:30
_scm_version.pyi Reuse a pre-existing `version_tuple` from SCM 2021-11-14 11:12:54 +01:00
_version.py Reuse a pre-existing `version_tuple` from SCM 2021-11-14 11:12:54 +01:00
backports.py Optimizations & Update Benchmark Results (#832) 2021-12-01 04:18:49 +05:30
constants.py Optimizations & Update Benchmark Results (#832) 2021-12-01 04:18:49 +05:30
flag.py Async `get_events`, `handle_event`, `handle_readables`, `handle_writables` (#769) 2021-11-23 15:02:00 +05:30
logger.py Add more info in log context (#732) 2021-11-12 22:29:48 +05:30
pki.py Add initial Sphinx docs 2021-11-18 01:36:13 +01:00
plugins.py Add `--auth-plugin` flag to override default basic auth plugin (#734) 2021-11-14 02:26:49 +05:30
types.py Fix the `typing_extensions` runtime dependency version (#641) 2021-10-31 08:31:34 +05:30
utils.py Optimize (#780) 2021-11-24 19:42:49 +05:30
version.py Reuse a pre-existing `version_tuple` from SCM 2021-11-14 11:12:54 +01:00