# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import module
from module import function

# ## Why import "from"
#
# If performance is key, importing the names saves a few nanoseconds compared to explicit lookup in the module namespace.

# %%timeit
function()

# %%timeit
module.function()

# ## Docstrings
#
# Docstring do not add to the execution time of functions. Is that non-trivial?

from module import function_with_docstring

# %%timeit
function_with_docstring()

StarcoderdataJupyterScriptsDedupFiltered