【发布时间】:2013-11-13 03:43:23
【问题描述】:
我正在尝试使用 pycharm 来调试 ironpython 脚本。它进展缓慢,因为 pycharm 在调试模式下运行非常缓慢。我意识到我们可以预期会出现一些放缓,但我正在经历大约 200 倍的放缓。以下是我的 pystone 结果:
正常运行:
"C:\Program Files (x86)\IronPython 2.7\ipy.exe" C:/Users/melchoir55/PycharmProjects/pystone/pystone.py
Pystone(1.1) time for 50000 passes = 0.270744
This machine benchmarks at 184676 pystones/second
调试器:
"C:\Program Files (x86)\IronPython 2.7\ipy.exe" -X:Frames "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 3.0.1\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 52669 --file C:/Users/melchoir55/PycharmProjects/pystone/pystone.py
pydev debugger: warning: sys._current_frames is not supported in Python 2.4, it is recommended to install threadframe module
pydev debugger: warning: See http://majid.info/blog/threadframe-multithreaded-stack-frame-extraction-for-python/
pydev debugger: process 9064 is connecting
Connected to pydev debugger (build 131.339)
Pystone(1.1) time for 50000 passes = 71.5615
This machine benchmarks at 698.700 pystones/second
有人知道这里发生了什么吗?
【问题讨论】:
-
我给了 PyDev 一个机会。它的性能稍好一些,但运行和调试之间的差异大致相同。
标签: python performance debugging ironpython pycharm