Message294433
| Author |
yselivanov |
| Recipients |
Arfrever, Jim Fasarakis-Hilliard, Mark.Shannon, benjamin.peterson, cvrebert, daniel.urban, eric.snow, jcea, meador.inge, ncoghlan, njs, yselivanov |
| Date |
2017年05月25日.05:17:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1495689423.96.0.327702550683.issue12857@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Sure. The issue is that I need to mark certain frames as "protected" from KeyboardInterrupt, in a way that my signal handler can see when walking the frame stack, so it can decide whether to raise a KeyboardInterrupt immediately or to wait until a safer moment.
OK, I got it, thanks!
> I suspect the way I'm currently munging frames at runtime also annoys PyPy's JIT.
Yes, whenever you touch frames you're disabling the JIT for the call site (and maybe for more call sites up the stack, idk). So it doesn't matter what you use, `f_func` or `f_locals`, the performance will suffer big time. Is that acceptable for Trio? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年05月25日 05:17:04 | yselivanov | set | recipients:
+ yselivanov, jcea, ncoghlan, benjamin.peterson, Arfrever, njs, cvrebert, meador.inge, daniel.urban, Mark.Shannon, eric.snow, Jim Fasarakis-Hilliard |
| 2017年05月25日 05:17:03 | yselivanov | set | messageid: <1495689423.96.0.327702550683.issue12857@psf.upfronthosting.co.za> |
| 2017年05月25日 05:17:03 | yselivanov | link | issue12857 messages |
| 2017年05月25日 05:17:03 | yselivanov | create |
|