Re:Interactive workflows for C++ with Jupyter
by peheje on Wednesday November 29, 2017 @04:53PM
(#15811207)
Cool. For anyone looking at using Python when speed is important should also take a look at Numba.
[ Parent
| on HN ]
Re:Interactive workflows for C++ with Jupyter
by superbatfish on Wednesday November 29, 2017 @07:38PM
(#15812294)
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).
Re:Interactive workflows for C++ with Jupyter
by peheje on Friday December 01, 2017 @06:43AM
(#15823274)
As 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.