4 ms·
Yes, numba is great; I've had a good experience with it for some functions. Some problems aren't suited well for it though, especially those that involve Pytho
by superbatfish 9y ago
Yes, numba is great; I've had a good experience with it for some functions.
Some problems aren't suited well for it though, especially those that involve Python dictionaries or sets. For those problems, switching to C++ results in MUCH faster code (std::unordered_map is way faster than Python's dict, especially for small elements).
- peheje 9y agoAs I'm aware of Python dictionaries are not supported by Numba, however it will still run in "object mode" which won't give you much performance boost. I tend to always specify the Numba function as njit or objectMode=False. But yea true, Numba does have shortcomings, maybe dictionaries and classes will be supported in the future.