I have a lot of imports at the beginning of my python
script. Additionally I have some functions which are transformed into compiled C
code by using numba
. You can find the very small imitation of my code structure below.
import numpy as np
import pandas as pd
from numba import jit,njit
def mysum(a,b):
return(a+b)
mysum_jit = jit() (mysum)
mysum_jit(5,6)
I want to put those codes on AWS Lambda feature. However, since both the importing and compilation parts are creating huge overheads at first running and I just want to call mysum_jit()
function only whenever an event is triggering my script, I am not sure if the AWS Lambda is the right option for me.
Is there a way to solve such an issue?
Thanks in advance.