I have a function that can be called many times (10^6+) depending on end-user input. According to cProfile the function itself executes quickly but the number o
cProfile