Skip to content

Commit 77b5cde

Browse files
authored
Optimization r1 (#571)
* Add isfuture() and iscoroutine() optimization * Apply async mode optimization * Wiring changes * Add optimization for wiring of async coroutines * Remove unused imports * Update changelog * Refactor async mode checks
1 parent f0c55cd commit 77b5cde

File tree

9 files changed

+19485
-9538
lines changed

9 files changed

+19485
-9538
lines changed

docs/main/changelog.rst

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ follows `Semantic versioning`_
99

1010
Develop
1111
-------
12+
- Optimize synchronous and asynchronous injections and wiring from x1.5 to x7 times depending on the use case.
1213
- Fix bug `#569 <https://github.com/ets-labs/python-dependency-injector/issues/569>`_:
1314
"numpy.typing.NDArray breaks wiring". Thanks to
1415
`@VKFisher (Vlad Fisher) <https://github.com/VKFisher>`_ for reporting the issue and providing a fix.

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
["src/dependency_injector/providers.c"],
5959
define_macros=list(defined_macros.items()),
6060
extra_compile_args=["-O2"]),
61+
Extension("dependency_injector._cwiring",
62+
["src/dependency_injector/_cwiring.c"],
63+
define_macros=list(defined_macros.items()),
64+
extra_compile_args=["-O2"]),
6165
],
6266
install_requires=requirements,
6367
extras_require={

0 commit comments

Comments
 (0)