hydroflask <hydrofl...@yqxmail.com> added the comment:

Okay I put together a benchmark that better exemplifies my use case and results 
are in favor of adding patch.

When bench_callback_v2.py is not compiled with mypyc I see a ~10% reduction in 
runtime:

    $ unpatched-env/bin/python bench_callback_v2.py
    1.1262263769749552
    $ patched-env/bin/python bench_callback_v2.py
    1.0174838998354971

When bench_callback_v2.py is compiled with mypyc, I am getting ~6% reduction in 
runtime:

    $ unpatched-env/bin/python -c "import bench_callback_v2"
    1.0056699379347265
    $ patched-env/bin/python -c "import bench_callback_v2"
    0.9415687420405447

bench_callback_v2.py is attached.

----------
Added file: https://bugs.python.org/file50609/bench_callback_v2.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to