[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-17 Thread deekay
deekay added the comment: I'm baffled by the performance difference of the following two semantically equivalent(?) programs. Python: #test.py import time starttime=time.time() import tensorflow print(f"Import took: {time.time() - starttime}")

[issue40312] Weakref callbacks running before finalizers in GC collection

2020-04-17 Thread deekay
deekay added the comment: Wrong thread, wrong thread, abort! Sorry, I meant to submit this as a separate issue. I don't see a delete option. Maybe a mod can remove this please? -- ___ Python tracker <https://bugs.python.org/is

[issue40314] python code order of magnitude faster than equivalent CPython code for simple import statement

2020-04-17 Thread deekay
New submission from deekay : I'm baffled by the performance difference of the following two semantically equivalent(?) programs. Python: #test.py import time starttime=time.time() import tensorflow print(f"Import took: {time.time() - starttime}") vs

[issue40314] python code order of magnitude faster than equivalent CPython code for simple import statement

2020-04-21 Thread deekay
deekay added the comment: The times are correct. It's very noticeable even without using a stopwatch. The C version actually takes 23 seconds to execute. -- ___ Python tracker <https://bugs.python.org/is