New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core]: Improves performance of coroutines/tasks and fixes event.stop() #213
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment. If that change is not possible I'll approve it, otherwise I'd like to see that change since it would make the whole testcase smaller.
Also we should check the test failures :D
tests/core/test_call_stop.py
Outdated
return app | ||
|
||
|
||
def test_call_stop(manager, watcher, app): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to get this fancy here (ie with manager
in a new thread etc).
Wouldn't this work too:
def test_call_stop():
app = App()
x = app.fire(test())
app.tick()
assert x.success # Or whatever is needed to check that the event ran properly.
assert.x.value is None
This way we do not run into the overhead of creating new threads and bussy waiting for events which makes tests slower :D
be1a2b9
to
77c36d5
Compare
This breaks all of the assumptions around streaming and handling generated responses via |
@spaceone I'd be interested to see if your circuits.http breaks on top of this PR? Can you test it out? |
@prologic yes, I'll test it :) but give me some days ^^ |
@prologic I love this change! It works brilliantly with |
In that case I recommend we seriously reconsider the architecture of
circuits.web -- even breaking it's user-facing API a bit?
James Mills / prologic
E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au
…On Sun, Jan 29, 2017 at 5:06 AM, Florian Best ***@***.***> wrote:
@prologic <https://github.com/prologic> I love this change! It works
brilliantly with circuits.http!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABOv-qLzjqZqluHihokzQGG4OHuCc3kyks5rXI7ngaJpZM4Lqu0X>
.
|
8d507e3
to
b0b2eda
Compare
Codecov Report
@@ Coverage Diff @@
## master #213 +/- ##
=========================================
Coverage ? 77.06%
=========================================
Files ? 80
Lines ? 6662
Branches ? 0
=========================================
Hits ? 5134
Misses ? 1528
Partials ? 0
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this change the API of on_complete handlers? The websocket components uses it.
@prologic Why do you close this and remove the branch? |
Ahh I was doing some Github cleanup! Sorry, do you want to take over the branch/PR? |
I can't promise to work on this currently, but I still would need it. I restore the branch to not remove the current working state. |
0de0f85
to
7d3ca60
Compare
Closes #136 and #86