Dottore-Genius-Invokation-TCG-Simulator
Dottore-Genius-Invokation-TCG-Simulator copied to clipboard
Inline-Import is Significantly Slower, Refactor to Remove most Inline-Imports
Tested with Python3.10, fb()
is 4 times slower than fa()
def simple_function():
if random.random() < 0.5:
return 1
else:
return 0
def fa():
return simple_function()
def fb():
from module import function
return simple_function()