-
Notifications
You must be signed in to change notification settings - Fork 747
Very Slow Python Initialize #703
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
Comments
I have never observed this, can you disclose your test sample? |
Did you mean that initialize takes 2 minutes under VS debugger? If yes,
then this could be due to VS or PTVS settings.
…On Mon, Jul 23, 2018, 7:20 PM Benedikt Reinartz ***@***.***> wrote:
I have never observed this, can you disclose your test sample?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5RFBRia8btyRMJbHrmRRwg_axrMzks5uJduZgaJpZM4VNnow>
.
|
I switched to running under release and it's much faster, takes around 40 seconds now, though I can still thousands of exceptions in the output window. Sounds like it could be some VS settings... any ideas which ones to play with? |
This issue was discussed before: #598. |
Switching to using the featured branch has solved the thousands of exceptions problem. It's also now quite speedy in release mode. It still takes forever in debug mode. |
@williamrubens PR #723 should add this feature once merged into master. |
closed by #723 |
I'm still having the very same issue with those exceptions beeing thrown and a very slow startup behaviour, is this normal or how can i debug this? |
Environment
Pythonnet version: 2.3.0
Python version: Python 3.5 (conda environment)
Operating System: Windows 10 64bit
VS 2017
Details
Hi guys, thanks for the great work building a super useful library. One question, and this could be expected behavior, I'm not sure. When I initialize the python interpreter on the .Net side, with this call:
using (Py.GIL()) {
I've timed it and it takes about 2 mins to complete the call. Further calls to grab python lock return immediately. I've also noticed that in visual studio my output window I see thousands of messages of this form:
The text was updated successfully, but these errors were encountered: