You can use @njit(cache=True) to avoid repeated compilation at each script execution by caching compiled function on ssd or hdd. Also njit can be used without decorator notation, i.e. cf = njit(f).compile('()') will forcibly compile function f and save aquired reference to cf. Here '()' is a signature of function f without arguments and returned value.
@Mr. Paul Andy Numba will recompile modified function because cache keeps full text of compiled function also. You can find 2 files in working directory that relate to compiled function f from module main.py.
Man. At this point, basicaly every youtuber does clickbait titles. Why u hating on one channel for doing it. At the very least this video provides some actually useful information, unlike others, even though the numbers might be a bit exaggerated.
You can use @njit(cache=True) to avoid repeated compilation at each script execution by caching compiled function on ssd or hdd. Also njit can be used without decorator notation, i.e. cf = njit(f).compile('()') will forcibly compile function f and save aquired reference to cf. Here '()' is a signature of function f without arguments and returned value.
@Mr. Paul Andy Numba will recompile modified function because cache keeps full text of compiled function also. You can find 2 files in working directory that relate to compiled function f from module main.py.
Thank you so much dear.
Ur explanation is just like a wow..
Respect from India
YOU'VE BLINDED ME
Would doing this on server-side to filter SQL queries quickly work and be good?
Thank you! 👏🏾
Thank you so much man.
I cant use it in python 3.10? it gives error: "No module named 'numba'
you have to install it
@@TheBuilder ohh that means I cant use it in olympic thx
The list append operation is pretty inefficient. Numba would speed up a ton if that list could be a numpy array instead.
How would njit work with pyinstaller? would it compaile with the pyintsaller compiler or would it do its own compiling when running the exe?
Err.. that's was actually two lines 🤓
brb deleting video
@@TheBuilder 🤣
Awesome video! Thank you!
happy to see people getting value out of it
hey what editor are you using
vs code
What is faster, numba or pypy compiler?
Numba has support for parallel for loops and CUDA
Can i use it before for i in range becoz it gives error @ or def expected
its supposed to go on top of functions. look up how decorators work in python
Does it work on front end like tkinter ??
why do you need to speed up your front end code?
Numba ❤
Taichi?
Thanks
Any time
Ok that was a 3x improvement where you clickbait a 1000x. I think one should avoid this channel from being recommended.
I'm glad you enjoyed the video
Man. At this point, basicaly every youtuber does clickbait titles. Why u hating on one channel for doing it. At the very least this video provides some actually useful information, unlike others, even though the numbers might be a bit exaggerated.
Thank you