For-loops in Python are notoriously slow compared to traditional compiled languages such as C++. This obstacle primarily manifests itself in medium data problems — i.e., data problems that are small enough to fit on a single machine — which then become too slow with traditional Python loops. The solution is simple: don’t use loops. Fortunately, there are numerous alternatives, depending on the task at hand, that allow you to carry out the desired operation with speed. In this talk, several examples will be given.
About Hylke C. Donkers
Civil engineer by education, programmer by experience. Maker of summaries: just google for “pygrunn” and “reinout”, for instance.